Skip to content

Commit

Permalink
ci: Use concurrency for pull requests only
Browse files Browse the repository at this point in the history
Otherwise, any previously pending workflow will be canceled on the
following push.
  • Loading branch information
hebasto committed Aug 22, 2023
1 parent 6ee1455 commit ee1be62
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 ee1be62

Please sign in to comment.