This repository was archived by the owner on Nov 3, 2025. It is now read-only.
chore:update release ci #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Changelog | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'examples/**' | |
| - 'tests/**' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| changelog: | |
| name: Check/Update Changelog | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install git-cliff | |
| run: | | |
| cargo install git-cliff --locked | |
| git-cliff --version | |
| - name: Generate changelog | |
| run: | | |
| git-cliff --config cliff.toml --output CHANGELOG.md --unreleased | |
| - name: Check if changelog needs update | |
| run: | | |
| if [ -n "$(git status --porcelain CHANGELOG.md)" ]; then | |
| echo "β CHANGELOG.md is out of date. Please run 'make changelog' and commit the changes." | |
| git diff CHANGELOG.md | |
| exit 1 | |
| else | |
| echo "β CHANGELOG.md is up to date" | |
| fi | |