Skip to content

Commit

Permalink
Merge pull request #2291 from ven-k/vkb/concurrency
Browse files Browse the repository at this point in the history
Cancel concurrent jobs stemming from PRs & Don't run Downstream and Invalidation tests for changes in `docs`
  • Loading branch information
ChrisRackauckas authored Sep 29, 2023
2 parents 34d1853 + 80f44bc commit 173da41
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
tags: '*'
pull_request:

concurrency:
# Skip intermediate builds: always, but for the master branch.
# Cancel intermediate builds: always, but for the master branch.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
branches: [master]
tags: [v*]
pull_request:
paths-ignore:
- 'docs/**'

concurrency:
# Skip intermediate builds: always, but for the master branch and tags.
# Cancel intermediate builds: always, but for the master branch and tags.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*' }}

jobs:
test:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
tags: '*'
pull_request:

concurrency:
# Skip intermediate builds: always, but for the master branch and tags.
# Cancel intermediate builds: always, but for the master branch and tags.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Invalidations

on:
pull_request:
paths-ignore:
- 'docs/**'

concurrency:
# Skip intermediate builds: always.
Expand Down Expand Up @@ -30,7 +32,7 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-invalidations@v1
id: invs_default

- name: Report invalidation counts
run: |
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
- master
paths-ignore:
- 'docs/**'

concurrency:
# Skip intermediate builds: always, but for the master branch.
# Cancel intermediate builds: always, but for the master branch.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 173da41

Please sign in to comment.