aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-08-24 10:16:48 +0100
committerfanquake <fanquake@gmail.com>2023-08-24 10:17:14 +0100
commit94af164e5eb285822f9b9817a09a265fd885c1ae (patch)
treef8351dfb352fcf9028480cd7774c6fe63cda1d41 /.github
parente0ad8470733f5a47a8711929210cebe51e6995f8 (diff)
parente7d67efd13f83ba9a6f6e62cb6d12ce37716a404 (diff)
downloadbitcoin-94af164e5eb285822f9b9817a09a265fd885c1ae.tar.xz
Merge bitcoin/bitcoin#28322: ci: Use concurrency for pull requests only
e7d67efd13f83ba9a6f6e62cb6d12ce37716a404 ci: Use concurrency for pull requests only (Hennadii Stepanov) Pull request description: This PR is an amendment for https://github.com/bitcoin/bitcoin/pull/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 e7d67efd13f83ba9a6f6e62cb6d12ce37716a404 dergoegge: lgtm ACK e7d67efd13f83ba9a6f6e62cb6d12ce37716a404 Tree-SHA512: 360be9dbb46354d988935643e8793ea630c3416609c45aab4c39075a00a427487446a34a4fb93b490ece43cabe43640fcc6fb2ac97760e2c6ee54b95241da826
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 96431a4bd5..29b725b254 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,8 +14,8 @@ on:
- '**'
concurrency:
- group: ${{ github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+ group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
+ cancel-in-progress: true
env:
DANGER_RUN_CI_ON_HOST: 1