Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
changelog:
Expand All @@ -33,12 +34,16 @@ jobs:
- name: Generate CHANGELOG.md
run: git-cliff --config cliff.toml --verbose --output CHANGELOG.md

- name: Commit and push updated CHANGELOG
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if ! git diff --quiet CHANGELOG.md; then
git add CHANGELOG.md
git commit -m "docs(changelog): update for ${GITHUB_REF_NAME}"
git push origin HEAD:main
fi
- name: Open pull request with updated CHANGELOG
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore/changelog-${{ github.ref_name }}
base: main
commit-message: "chore(changelog): update for ${{ github.ref_name }}"
title: "chore(changelog): update for ${{ github.ref_name }}"
body: |
CHANGELOG.md regenerated by git-cliff on tag `${{ github.ref_name }}`.

Opened automatically by the `Update Changelog` workflow because `main` is protected.
delete-branch: true
Loading