Skip to content

Commit 12f575b

Browse files
[fix]: scope build-and-test concurrency by event to avoid cancellations
Release branch commits trigger build-and-test from both the push (release/**) and pull_request events, which shared one concurrency group, so cancel-in-progress made them cancel each other. A cancelled run left the required build-and-test check unsatisfied and blocked the release PR merge. Add github.event_name to the concurrency group so push and PR runs no longer cancel each other; per-event cancellation of superseded runs is preserved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 63886e1 commit 12f575b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010
- release/**
1111
concurrency:
12-
group: build-and-test-${{ github.head_ref || github.ref_name }}
12+
group: build-and-test-${{ github.event_name }}-${{ github.head_ref || github.ref_name }}
1313
cancel-in-progress: true
1414

1515
jobs:

0 commit comments

Comments
 (0)