File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,21 +12,27 @@ jobs:
1212 runs-on : ubuntu-latest
1313 timeout-minutes : 5
1414
15+ permissions :
16+ # Give the default GITHUB_TOKEN write permission to commit and push the
17+ # updated CHANGELOG back to the repository.
18+ # https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
19+ contents : write
20+
1521 steps :
1622 - name : Checkout code
1723 uses : actions/checkout@v6
1824 with :
19- ref : 2.x
25+ ref : ${{ github.event.release.target_commitish }}
2026
2127 - name : Update Changelog
2228 uses : stefanzweifel/changelog-updater-action@v1
2329 with :
24- latest-version : ${{ github.event.release.name }}
30+ latest-version : ${{ github.event.release.tag_name }}
2531 release-notes : ${{ github.event.release.body }}
2632
2733 - name : Commit updated CHANGELOG
2834 uses : stefanzweifel/git-auto-commit-action@v7
2935 with :
30- branch : main
36+ branch : ${{ github.event.release.target_commitish }}
3137 commit_message : Update CHANGELOG
3238 file_pattern : CHANGELOG.md
You can’t perform that action at this time.
0 commit comments