Skip to content

Commit dda99c9

Browse files
Check that PRs' CHANGELOG.md changes don't modify already-released content in CI (#8351)
1 parent 7b95053 commit dda99c9

File tree

3 files changed

+620
-0
lines changed

3 files changed

+620
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: changelog
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/changelog.yml"
7+
- "CHANGELOG.md"
8+
- "xtask/**/*"
9+
10+
env:
11+
#
12+
# Dependency versioning
13+
#
14+
15+
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
16+
REPO_MSRV: "1.88"
17+
18+
#
19+
# Environment variables
20+
#
21+
22+
CARGO_INCREMENTAL: false
23+
CARGO_TERM_COLOR: always
24+
RUST_LOG: info
25+
RUST_BACKTRACE: "1"
26+
CACHE_SUFFIX: c # cache busting
27+
28+
jobs:
29+
changelog:
30+
timeout-minutes: 2
31+
32+
name: Check changelog for errors
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- name: Checkout repo
37+
uses: actions/checkout@v5
38+
with:
39+
fetch-depth: 0
40+
41+
- name: Run `cargo xtask changelog …`
42+
run: |
43+
cargo xtask changelog "origin/${{ github.event.pull_request.base.ref }}"

0 commit comments

Comments
 (0)