name: update-changelog on: release: types: [released] permissions: contents: write jobs: update: runs-on: ubuntu-latest steps: # persist-credentials: true is required so `git-auto-commit-action` below # can push the CHANGELOG update. # zizmor: ignore[artipacked] - name: Checkout code uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: ref: main - name: Update Changelog uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1.12.0 with: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0 with: branch: main commit_message: Update CHANGELOG file_pattern: CHANGELOG.md