File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Update Changelog"
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+
8+ jobs :
9+ update :
10+ runs-on : ubuntu-latest
11+
12+ permissions :
13+ # Give the default GITHUB_TOKEN write permission to commit and push the
14+ # updated CHANGELOG back to the repository.
15+ # https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
16+ contents : write
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+ with :
22+ ref : ${{ github.event.release.target_commitish }}
23+
24+ - name : Update Changelog
25+ uses : stefanzweifel/changelog-updater-action@v1
26+ with :
27+ latest-version : ${{ github.event.release.tag_name }}
28+ release-notes : ${{ github.event.release.body }}
29+
30+ - name : Commit updated CHANGELOG
31+ uses : stefanzweifel/git-auto-commit-action@v5
32+ with :
33+ branch : ${{ github.event.release.target_commitish }}
34+ commit_message : Update CHANGELOG
35+ file_pattern : CHANGELOG.md
You can’t perform that action at this time.
0 commit comments