Debian Codegraph @

.github/workflows/update-changelog.yaml

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 permissions:
12 contents: write
13
14 jobs:
15 update:
16 runs-on: ubuntu-latest
17
18 steps:
19 - name: Checkout code
20 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21 with:
22 ref: main
23 persist-credentials: false
24
25 - name: Update Changelog
26 uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1
27 with:
28 release-notes: ${{ github.event.release.body }}
29 latest-version: ${{ github.event.release.name }}
30 path-to-changelog: CHANGES.md
31
32 - name: Commit updated CHANGELOG
33 uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
34 with:
35 branch: main
36 commit_message: Update CHANGELOG
37 file_pattern: CHANGES.md