Skip to content

Commit 26a9899

Browse files
Merge bitcoin-core/secp256k1#1410: ci: Use concurrency for pull requests only
ee1be62 ci: Use concurrency for pull requests only (Hennadii Stepanov) Pull request description: This PR is an amendment for bitcoin-core/secp256k1#1403. It avoids skipping builds when some pushes were done consequentially. From GitHub Actions [docs](https://docs.github.com/en/actions/using-jobs/using-concurrency): > When a concurrent ... workflow is queued, if another ... workflow using the same concurrency group in the repository is in progress, the queued ... workflow will be pending. **Any previously pending ... workflow in the concurrency group will be canceled.** No behavior change for pull requests. Same as bitcoin#28322. ACKs for top commit: real-or-random: ACK ee1be62 Tree-SHA512: ce26378c3224a7647eb3b351d19e9308650ad49b933a68d37a0eca8516767a63f55580a33b02864caa539392c9aab0b4b54ecbace85bea6082bf533539a37c9c
2 parents 6ee1455 + ee1be62 commit 26a9899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- '**'
99

1010
concurrency:
11-
group: ${{ github.ref }}
12-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
11+
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
12+
cancel-in-progress: true
1313

1414
env:
1515
### compiler options

0 commit comments

Comments
 (0)