Files
CS-Box/.gitea/workflows/changelog.yml
Alexander Lyall 49292121b2
Some checks failed
Changelog / changelog (push) Failing after 39s
Update .gitea/workflows/changelog.yml
2025-12-25 17:00:30 +00:00

43 lines
1.0 KiB
YAML

name: Changelog
on:
push:
branches: [ main ]
tags:
- "v*"
workflow_dispatch:
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout (full history + tags)
uses: actions/checkout@v4
with:
fetch-depth: 0
# fetch-depth: 0 is important so git-cliff can see tags/history properly :contentReference[oaicite:3]{index=3}
- name: Generate CHANGELOG.md (Keep a Changelog)
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Commit and push if changed
shell: bash
run: |
set -e
if git diff --quiet -- CHANGELOG.md; then
echo "No changelog changes."
exit 0
fi
git config user.name "gitea-actions[bot]"
git config user.email "actions@localhost"
git add CHANGELOG.md
git commit -m "docs(changelog): update changelog [skip ci]"
git push