Skip to content

Commit 167b518

Browse files
committed
CI: update concurrency check
1 parent 9800499 commit 167b518

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
@@ -9,8 +9,8 @@ on:
99

1010
concurrency:
1111
# group by workflow and ref; the last slightly strange component ensures that for pull
12-
# requests, we limit to 1 concurrent job, but for the master branch we don't
13-
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
12+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
13+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
1414
# Cancel intermediate builds, but only if it is a pull request build.
1515
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1616

0 commit comments

Comments
 (0)