ci: Use concurrency for pull requests only
Otherwise, any previously pending workflow will be canceled on the following push.
This commit is contained in:
parent
6ee14550c8
commit
ee1be62d84
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -8,8 +8,8 @@ on:
|
|||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref }}
|
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
|
||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
### compiler options
|
### compiler options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user