Skip to content

Commit ee1be62

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- '**'
99

1010
concurrency:
11-
group: ${{ github.ref }}
12-
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
11+
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
12+
cancel-in-progress: true
1313

1414
env:
1515
### compiler options

0 commit comments

Comments
 (0)