Skip to content

Commit 94af164

Browse files
committed
Merge bitcoin#28322: ci: Use concurrency for pull requests only
e7d67ef ci: Use concurrency for pull requests only (Hennadii Stepanov) Pull request description: This PR is an amendment for bitcoin#28282. It avoids skipping builds when some pushes were done consequentially: ![image](https://github.com/bitcoin/bitcoin/assets/32963518/977e9ead-1856-4020-82eb-d16dbead5753) 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: ![image](https://github.com/bitcoin/bitcoin/assets/32963518/4865ae04-fc42-4028-b91e-500c0b36bce6) ACKs for top commit: MarcoFalke: review only ACK e7d67ef dergoegge: lgtm ACK e7d67ef Tree-SHA512: 360be9dbb46354d988935643e8793ea630c3416609c45aab4c39075a00a427487446a34a4fb93b490ece43cabe43640fcc6fb2ac97760e2c6ee54b95241da826
2 parents e0ad847 + e7d67ef commit 94af164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ on:
1414
- '**'
1515

1616
concurrency:
17-
group: ${{ github.ref }}
18-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
18+
cancel-in-progress: true
1919

2020
env:
2121
DANGER_RUN_CI_ON_HOST: 1

0 commit comments

Comments
 (0)