Skip to content

Commit e7d67ef

Browse files
committed
ci: Use concurrency for pull requests only
Otherwise, any previously pending workflow will be canceled on the following push.
1 parent 38db2bd commit e7d67ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ on:
1414
- '**'
1515

1616
concurrency:
17-
group: ${{ github.ref }}
18-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
18+
cancel-in-progress: true
1919

2020
env:
2121
DANGER_RUN_CI_ON_HOST: 1

0 commit comments

Comments
 (0)