CI: cancel superseded runs with workflow concurrency groups
The forge runner takes one job at a time, so every superseded push or PR sync piled up behind the one before it and the dev preview run waited behind runs for merged heads. Pull-request workflows get a group per workflow and PR number; the dev preview gets its own group, so a newer dev push cancels an older one and PR runs never cancel it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
913a66ebf0
commit
8f8536a805
4 changed files with 19 additions and 0 deletions
7
.github/workflows/rat-dev-preview.yml
vendored
7
.github/workflows/rat-dev-preview.yml
vendored
|
|
@ -4,6 +4,13 @@ on:
|
|||
push:
|
||||
branches: ['dev']
|
||||
|
||||
# One run per ref wins: a newer push to dev cancels the older queued or running one, so the run
|
||||
# that builds rat-dev-dist is always the newest. Pull-request runs are other workflows and other
|
||||
# groups; they never cancel it.
|
||||
concurrency:
|
||||
group: rat-dev-preview
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build dev preview
|
||||
|
|
|
|||
Loading…
Reference in a new issue