An even fancier CHANGELOG check in CI
#19
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: Check `CHANGELOG.md` | |
| on: | |
| pull_request: | |
| paths: | |
| - 'CHANGELOG.md' | |
| - 'xtask/**/*' | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - labeled | |
| - unlabeled | |
| env: | |
| # | |
| # Dependency versioning | |
| # | |
| # This is the MSRV used by `wgpu` itself and all surrounding infrastructure. | |
| REPO_MSRV: "1.88" | |
| # | |
| # Environment variables | |
| # | |
| CARGO_INCREMENTAL: false | |
| CARGO_TERM_COLOR: always | |
| RUST_LOG: info | |
| RUST_BACKTRACE: '1' | |
| CACHE_SUFFIX: c # cache busting | |
| jobs: | |
| changelog: | |
| timeout-minutes: 1 | |
| name: Check `CHANGELOG` for errors | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run `cargo xtask changelog …` | |
| run: | | |
| cargo xtask changelog --emit-github-messages ${{ contains(github.event.issue.labels.*.name, 'changelog: released entry changed') && '--warn-only' || '' }} "origin/${{ github.event.pull_request.base.ref }}" >> "$GITHUB_STEP_SUMMARY" |