Skip to content

Commit 0b520df

Browse files
test(CHANGELOG): add changelog: released entry changed label escape hatch for --warn-only
1 parent d82e17a commit 0b520df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/changelog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
- opened
1010
- synchronize
1111
- reopened
12+
- labeled
13+
- unlabeled
1214

1315
env:
1416
#
@@ -41,6 +43,7 @@ jobs:
4143
with:
4244
fetch-depth: 0
4345

46+
# NOTE: Keep label name(s) in sync. with `xtask`'s implementation.
4447
- name: Run `cargo xtask changelog …`
4548
run: |
46-
cargo xtask changelog --emit-github-messages "origin/${{ github.event.pull_request.base.ref }}"
49+
cargo xtask changelog --emit-github-messages "origin/${{ github.event.pull_request.base.ref }}" ${{ contains(github.event.pull_request.labels.*.name, 'changelog: released entry changed') && '--warn-only' || '' }}

0 commit comments

Comments
 (0)