Skip to content

Commit 173da41

Browse files
Merge pull request #2291 from ven-k/vkb/concurrency
Cancel concurrent jobs stemming from PRs & Don't run Downstream and Invalidation tests for changes in `docs`
2 parents 34d1853 + 80f44bc commit 173da41

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

.github/workflows/Documentation.yml

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

10+
concurrency:
11+
# Skip intermediate builds: always, but for the master branch.
12+
# Cancel intermediate builds: always, but for the master branch.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
15+
1016
jobs:
1117
build:
1218
runs-on: ubuntu-latest

.github/workflows/Downstream.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ on:
44
branches: [master]
55
tags: [v*]
66
pull_request:
7+
paths-ignore:
8+
- 'docs/**'
9+
10+
concurrency:
11+
# Skip intermediate builds: always, but for the master branch and tags.
12+
# Cancel intermediate builds: always, but for the master branch and tags.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*' }}
715

816
jobs:
917
test:

.github/workflows/FormatCheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
tags: '*'
99
pull_request:
1010

11+
concurrency:
12+
# Skip intermediate builds: always, but for the master branch and tags.
13+
# Cancel intermediate builds: always, but for the master branch and tags.
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
16+
1117
jobs:
1218
build:
1319
runs-on: ${{ matrix.os }}

.github/workflows/Invalidations.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Invalidations
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
57

68
concurrency:
79
# Skip intermediate builds: always.
@@ -30,7 +32,7 @@ jobs:
3032
- uses: julia-actions/julia-buildpkg@v1
3133
- uses: julia-actions/julia-invalidations@v1
3234
id: invs_default
33-
35+
3436
- name: Report invalidation counts
3537
run: |
3638
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ on:
1010
- master
1111
paths-ignore:
1212
- 'docs/**'
13+
14+
concurrency:
15+
# Skip intermediate builds: always, but for the master branch.
16+
# Cancel intermediate builds: always, but for the master branch.
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
19+
1320
jobs:
1421
test:
1522
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)