Skip to content

Commit 61a918f

Browse files
authored
[CI] Auto-cancel old PR builds (#6)
1 parent 8b7ca02 commit 61a918f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
- 'main'
1010
- 'release-*'
1111
tags: '*'
12+
concurrency:
13+
# Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches
14+
# Cancel intermediate builds: only pull request builds
15+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
16+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1217
jobs:
1318
test:
1419
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}

0 commit comments

Comments
 (0)