Skip to content

Commit e9ccdf5

Browse files
committed
improve comment and concurrency group
1 parent 159cedc commit e9ccdf5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77
pull_request:
88
workflow_call:
99

10-
concurrency: # if the event is not a pull request, use the run number to make each run unique
11-
group: ci-${{ github.event_name == 'pull_request' || github.run_number }}-${{ github.ref_name }}
10+
concurrency:
11+
# if the event is a pull request, use the PR number to make PR checks cancel previous runs
12+
# if the event is not a pull request, use the run number to make each run unique
13+
group: CI-${{ github.event_name == 'pull_request' && github.event.number || github.run_number }}
1214
cancel-in-progress: true
1315

1416
jobs:

0 commit comments

Comments
 (0)