ci: Use concurrency for pull requests only

Otherwise, any previously pending workflow will be canceled on the
following push.
This commit is contained in:
Hennadii Stepanov 2023-08-22 11:26:01 +01:00
parent 38db2bd4e1
commit e7d67efd13
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -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