Skip to content

v0.4.0

v0.4.0 #1

Workflow file for this run

name: Update Changelog
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Generate CHANGELOG.md from GitHub releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: python scripts/generate_changelog.py --output CHANGELOG.md
- name: Commit and push changes
run: |
if git diff --quiet CHANGELOG.md; then
echo "No changelog changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md
git commit -m "docs: sync CHANGELOG.md from GitHub releases"
git push