Skip to content

Commit

Permalink
Merge bitcoin-core/secp256k1#1410: ci: Use concurrency for pull reque…
Browse files Browse the repository at this point in the history
…sts 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
  • Loading branch information
real-or-random committed Aug 23, 2023
2 parents 6ee1455 + ee1be62 commit 26a9899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,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:
### compiler options
Expand Down

0 comments on commit 26a9899

Please sign in to comment.