Skip to content

ci(docs): add automatic generation of CHANGELOG #1

ci(docs): add automatic generation of CHANGELOG

ci(docs): add automatic generation of CHANGELOG #1

Workflow file for this run

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