Skip to content

Commit b7ce2be

Browse files
committed
Move changelog config to .github, switch to gem
The latest version of the github_changelog_generator gem properly supports passing the config file path, but the GH action we were using was quite behind the latest. So just switch to running the gem directly, using parameter expansion to retrieve the owner/project as explained in https://www.cazzulino.com/github-actions-repository.html
1 parent bfe0f2a commit b7ce2be

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github_changelog_generator renamed to .github/.github_changelog_generator

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
usernames-as-github-logins=true
2-
header-label=
32
issues_wo_labels=true
43
pr_wo_labels=true
54
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
token: ${{ env.GH_TOKEN }}
2626

2727
- name: ⚙ changelog
28-
uses: faberNovel/github-changelog-generator-action@master
29-
with:
30-
options: --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md
28+
run: |
29+
sudo gem install github_changelog_generator
30+
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
3131
3232
- name: 🚀 changelog
3333
run: |

.github/workflows/release-notes.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
run: echo "SINCE_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))" >> $GITHUB_ENV
2222

2323
- name: ⚙ changelog
24-
uses: faberNovel/github-changelog-generator-action@master
2524
if: env.SINCE_TAG != ''
26-
with:
27-
options: --token ${{ secrets.GITHUB_TOKEN }} --since-tag ${{ env.SINCE_TAG }} --o changelog.md
25+
run: |
26+
sudo gem install github_changelog_generator
27+
github_changelog_generator --since-tag ${{ env.SINCE_TAG }} --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
2828
2929
- name: ⚙ changelog
30-
uses: faberNovel/github-changelog-generator-action@master
3130
if: env.SINCE_TAG == ''
32-
with:
33-
options: --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md
31+
run: |
32+
sudo gem install github_changelog_generator
33+
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
3434
3535
- name: 🖉 release
3636
shell: pwsh

0 commit comments

Comments
 (0)