Skip to content

An even fancier CHANGELOG check in CI #13

An even fancier CHANGELOG check in CI

An even fancier CHANGELOG check in CI #13

Workflow file for this run

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"