Skip to content

Commit 82ccc23

Browse files
committed
ci: Add concurrency cancellation
Every time I (or someone else) force pushes to re-add the DCO we're wasting resources and/or just have added latency. Signed-off-by: Colin Walters <[email protected]>
1 parent 20e6bb5 commit 82ccc23

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
env:
1414
CARGO_TERM_COLOR: always
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
tests:
1822
runs-on: ubuntu-latest

.github/workflows/integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
pull_request_target:
1616
types: [opened, synchronize, reopened]
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
1822
env:
1923
AWS_REGION: us-east-1
2024

0 commit comments

Comments
 (0)