ci: Use concurrency for pull requests only
Otherwise, any previously pending workflow will be canceled on the following push.
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user