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 15:02:30 +01:00
parent 6ee14550c8
commit ee1be62d84
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

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