Skip to content

Commit 15ba8ac

Browse files
committed
Auto-cancel previous CI workflow runs on new pushes
1 parent 0ad54e8 commit 15ba8ac

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- "node-hub/**"
1515
workflow_dispatch:
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
env:
1822
RUST_LOG: DEBUG
1923

.github/workflows/node-hub-ci-cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
release:
1717
types: [published]
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
find-jobs:
2125
runs-on: ubuntu-24.04

.github/workflows/pip-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
- "binaries/cli/**"
2828
- "Cargo.toml"
2929

30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.ref }}
32+
cancel-in-progress: ${{ github.event_name != 'release' }}
33+
3034
permissions:
3135
contents: write
3236

0 commit comments

Comments
 (0)