Skip to content

Commit 82efd60

Browse files
committed
ci: serialize main-red-alert runs to prevent duplicate issues
Two near-simultaneous red-main events could both pass the open-issue lookup and each create a ci-main-red issue (or 422 racing createLabel). A workflow concurrency group with cancel-in-progress: false serializes them; the default single-slot pending queue is enough since a superseded alert's state is re-read by the newest run anyway.
1 parent e8f193a commit 82efd60

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/main-red-alert.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ on:
1616
permissions:
1717
issues: write
1818

19+
# Serialize alert runs: two near-simultaneous red-main events would otherwise
20+
# race the label/issue lookups and open duplicate ci-main-red issues (or 422
21+
# on createLabel). Never cancel a running alert; a superseded pending run is
22+
# fine — the newest event still lands its comment.
23+
concurrency:
24+
group: main-red-alert
25+
cancel-in-progress: false
26+
1927
jobs:
2028
alert:
2129
name: Open issue on red main

0 commit comments

Comments
 (0)