Skip to content

Commit 930f930

Browse files
committed
CI: update concurrency check
1 parent ee59731 commit 930f930

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
@@ -10,8 +10,8 @@ on:
1010
# the `concurrency` settings ensure that not too many CI jobs run in parallel
1111
concurrency:
1212
# group by workflow and ref; the last slightly strange component ensures that for pull
13-
# requests, we limit to 1 concurrent job, but for the master branch we don't
14-
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
13+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
14+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
1515
# Cancel intermediate builds, but only if it is a pull request build.
1616
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1717

0 commit comments

Comments
 (0)