Skip to content

Commit 272fb01

Browse files
authored
fix(ci): add concurrency group to cancel superseded runs on force-push (#444)
Force-pushes triggered a new pull_request synchronize event while the previous run's lightweight jobs (conventional-commits, IPR) still held the free-tier runner slots. The 4-runner Test Python matrix for the new SHA was queued but never scheduled — the fast jobs always won. Required a manual close/reopen to retrigger. The concurrency block cancels in-progress runs for the same ref so the new SHA's matrix jobs get scheduled immediately. Closes #413
1 parent 69211a3 commit 272fb01

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
concurrency:
10+
group: ci-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
test:
1115
name: Test Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)