Skip to content

Commit

Permalink
CI: Cancel running jobs if new commit pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Oct 25, 2023
1 parent 6859233 commit ee488e7
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build_external_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- master
workflow_dispatch:

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:

build-deps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build_netcdf_no_hdf5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:

build-deps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:

build-deps:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ on:
branches:
- master

jobs:
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-deps:

runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-exodus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: docker-exodus
on:
push:
branches: [ "master" ]

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-latest:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-seacas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: docker-seacas
on:
push:
branches: [ "master" ]

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-latest:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/intel-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches:
- master


concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-deps:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- master

concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
runs-on: windows-latest
Expand Down

0 comments on commit ee488e7

Please sign in to comment.