Skip to content

Commit 1311519

Browse files
committed
Cancel intermediate builds
1 parent 894af67 commit 1311519

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
- master
1111
paths-ignore:
1212
- 'docs/**'
13+
concurrency:
14+
# Skip intermediate builds: always.
15+
# Cancel intermediate builds: only if it is a pull request build.
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1318
jobs:
1419
test:
1520
runs-on: ubuntu-latest

.github/workflows/Downstream.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
branches: [master]
55
tags: [v*]
66
pull_request:
7-
7+
concurrency:
8+
# Skip intermediate builds: always.
9+
# Cancel intermediate builds: only if it is a pull request build.
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
812
jobs:
913
test:
1014
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}

0 commit comments

Comments
 (0)