Debian Codegraph @

.github/workflows/update-changelog.yml

raw
1 # This workflow takes the GitHub release notes and updates the changelog on the
2 # main branch with the body of the release notes, thereby keeping a log in
3 # the git repo of the changes.
4
5 name: "Update Changelog"
6
7 on:
8 release:
9 types: [released]
10
11 jobs:
12 update:
13 runs-on: ubuntu-latest
14
15 steps:
16 - name: Checkout code
17 uses: actions/checkout@v6
18 with:
19 ref: main
20
21 - name: Update Changelog
22 uses: stefanzweifel/changelog-updater-action@v1
23 with:
24 release-notes: ${{ github.event.release.body }}
25 latest-version: ${{ github.event.release.name }}
26 path-to-changelog: CHANGES.md
27
28 - name: Commit updated Changelog
29 uses: stefanzweifel/git-auto-commit-action@v7
30 with:
31 branch: main
32 commit_message: Update CHANGELOG
33 file_pattern: CHANGES.md