Skip to content

Commit 53ca844

Browse files
committed
Cancel superseded CI runs on new pushes
A new push to a PR (or ref) now cancels the in-progress validation for the previous commit instead of letting obsolete pipelines run to completion. Drafts deliberately keep the full gate set — multi-platform feedback matters most during iteration. Signed-off-by: Martin Vogel <martin.vogel@datadice.io>
1 parent 3d9917f commit 53ca844

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ permissions:
1010
security-events: write
1111
contents: read
1212

13+
concurrency:
14+
group: codeql-${{ github.ref }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
analyze:
1519
runs-on: ubuntu-latest

.github/workflows/dco.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
permissions:
1111
contents: read
1212

13+
concurrency:
14+
group: dco-${{ github.ref }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
dco:
1519
runs-on: ubuntu-latest

.github/workflows/pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ on:
1111
permissions:
1212
contents: read
1313

14+
# A new push to the PR supersedes the running validation — cancel it
15+
# instead of stacking zombie pipelines.
16+
concurrency:
17+
group: pr-${{ github.event.pull_request.number }}
18+
cancel-in-progress: true
19+
20+
1421
jobs:
1522
security:
1623
uses: ./.github/workflows/_security.yml

0 commit comments

Comments
 (0)