Skip to content

Commit 745d7ba

Browse files
test(CHANGELOG): add changelog: released entry changed label escape hatch for --allow-released-changes
1 parent ffbac15 commit 745d7ba

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
@@ -10,6 +10,8 @@ on:
1010
- opened
1111
- synchronize
1212
- reopened
13+
- labeled
14+
- unlabeled
1315

1416
env:
1517
#
@@ -42,6 +44,7 @@ jobs:
4244
with:
4345
fetch-depth: 0
4446

47+
# NOTE: Keep label name(s) in sync. with `xtask`'s implementation.
4548
- name: Run `cargo xtask changelog …`
4649
run: |
47-
cargo xtask changelog "origin/${{ github.event.pull_request.base.ref }}"
50+
cargo xtask changelog "origin/${{ github.event.pull_request.base.ref }}" ${{ contains(github.event.pull_request.labels.*.name, 'changelog: released entry changed') && '--allow-released-changes' || '' }}

0 commit comments

Comments
 (0)