Skip to content

Commit a69b6fe

Browse files
committed
CI/Release: enforce concurrency=1 and cancel superseded runs
1 parent 9cfd2cb commit a69b6fe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

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

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
env:
913
CARGO_TERM_COLOR: always
1014

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
required: true
1111

1212
concurrency:
13-
group: release-${{ github.ref_name || inputs.tag }}
13+
group: ${{ github.workflow }}-${{ github.ref_name || inputs.tag }}
1414
cancel-in-progress: true
1515

1616
permissions:

0 commit comments

Comments
 (0)