Skip to content

Commit de197c1

Browse files
committed
Merge bitcoin/bitcoin#28282: ci: Ensure that only a single workflow processes github.ref at a time
0080b56 ci: Ensure that only a single workflow processes `github.ref` at a time (Hennadii Stepanov) Pull request description: This PR ensures that only a single workflow processes any push or pull request at a time. A new push will be queued (including the master branch). For a new pull request update, the previous in-progress one will be cancelled. Address bitcoin/bitcoin#28187 (comment). ACKs for top commit: dergoegge: utACK 0080b56 Tree-SHA512: d03f1678c93c817c1c3be5e75171bfe85d494f99a9aab7113c9438e0c820e950edd5c10199cccd54868e6dc50217bb3aa5601b23bc88ad4927c001031e917513
2 parents ecb2056 + 0080b56 commit de197c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-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
tags-ignore:
1414
- '**'
1515

16+
concurrency:
17+
group: ${{ github.ref }}
18+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
19+
1620
env:
1721
DANGER_RUN_CI_ON_HOST: 1
1822
TEST_RUNNER_TIMEOUT_FACTOR: 40

0 commit comments

Comments
 (0)