Skip to content

ci: add PR fast-forward merge workflows #2

ci: add PR fast-forward merge workflows

ci: add PR fast-forward merge workflows #2

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