Skip to content

Generate CHANGELOG.md #15

Generate CHANGELOG.md

Generate CHANGELOG.md #15

Workflow file for this run

name: Generate CHANGELOG.md
on:
schedule:
- cron: "0 0 * * 1,5"
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Generate CHANGELOG.md
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: changelog for ${{ steps.vars.outputs.sha_short }}
file_pattern: 'CHANGELOG.md'