ci(docs): add automatic generation of CHANGELOG #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate changelog | |
on: | |
push: | |
branches: | |
- master | |
workflow_run: | |
workflows: [Create GitHub release] | |
types: [completed] | |
jobs: | |
changelog: | |
name: Generate changelog | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # needed to write commit | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate a changelog | |
uses: orhun/git-cliff-action@v3 | |
with: | |
config: cliff.toml | |
args: --verbose | |
env: | |
OUTPUT: CHANGELOG.md | |
GITHUB_REPO: ${{ github.repository }} | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore(docs): update CHANGELOG" | |
file_pattern: CHANGELOG.md | |
commit_user_name: github-actions[bot] | |
commit_user_email: github-actions[bot]@users.noreply.github.com | |
branch: master |