From 99283c9d14cf2bb00a6196704899dbd6478be2bb Mon Sep 17 00:00:00 2001 From: Jerad Bitner Date: Sun, 3 Nov 2024 14:35:37 -0800 Subject: [PATCH 1/2] Create generate-changelog.yml Adding a github action for generating a CHANGELOG.md file automatically when a new tag is created. --- .github/workflows/generate-changelog.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/generate-changelog.yml diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml new file mode 100644 index 00000000..d657bd96 --- /dev/null +++ b/.github/workflows/generate-changelog.yml @@ -0,0 +1,17 @@ +name: Generate Changelog +on: + push: + tags: + - '*' +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Generate Changelog + run: | + gem install github_changelog_generator + github_changelog_generator \ + -u ${{ github.repository_owner }} \ + -p ${{ github.event.repository.name }} \ + --token ${{ secrets.GITHUB_TOKEN }} From 9450bef2ce0661fb59ec6e6e2603e30295b557ad Mon Sep 17 00:00:00 2001 From: Jerad Bitner Date: Sun, 3 Nov 2024 14:50:07 -0800 Subject: [PATCH 2/2] Update generate-changelog.yml change name of secret --- .github/workflows/generate-changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml index d657bd96..c8818972 100644 --- a/.github/workflows/generate-changelog.yml +++ b/.github/workflows/generate-changelog.yml @@ -14,4 +14,4 @@ jobs: github_changelog_generator \ -u ${{ github.repository_owner }} \ -p ${{ github.event.repository.name }} \ - --token ${{ secrets.GITHUB_TOKEN }} + --token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}