Skip to content

Commit 4c14b3d

Browse files
authored
Restore concurrency updates
1 parent 09004d6 commit 4c14b3d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
- main
77
tags: '*'
88

9+
concurrency:
10+
# group by workflow and ref; the last slightly strange component ensures that for pull
11+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
13+
# Cancel intermediate builds, but only if it is a pull request build.
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
916
# needed to allow julia-actions/cache to delete old caches that it has created
1017
permissions:
1118
actions: write

0 commit comments

Comments
 (0)