diff --git a/.github/workflows/Intel.yml b/.github/workflows/Intel.yml index 88e04944..b6d76613 100644 --- a/.github/workflows/Intel.yml +++ b/.github/workflows/Intel.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh # without having to do it in manually every step defaults: diff --git a/.github/workflows/Linux_options.yml b/.github/workflows/Linux_options.yml index 60f68d07..85d78ba8 100644 --- a/.github/workflows/Linux_options.yml +++ b/.github/workflows/Linux_options.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_options: runs-on: ubuntu-latest diff --git a/.github/workflows/Linux_shared.yml b/.github/workflows/Linux_shared.yml index 89a90074..8916a353 100644 --- a/.github/workflows/Linux_shared.yml +++ b/.github/workflows/Linux_shared.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_shared: runs-on: ubuntu-latest diff --git a/.github/workflows/Linux_versions.yml b/.github/workflows/Linux_versions.yml index 5a889d5b..33c2f5f7 100644 --- a/.github/workflows/Linux_versions.yml +++ b/.github/workflows/Linux_versions.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: Linux_versions: runs-on: ubuntu-latest diff --git a/.github/workflows/MacOS.yml b/.github/workflows/MacOS.yml index 04f14d19..59089bf5 100644 --- a/.github/workflows/MacOS.yml +++ b/.github/workflows/MacOS.yml @@ -12,6 +12,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: MacOS: runs-on: macos-latest diff --git a/.github/workflows/Spack.yml b/.github/workflows/Spack.yml index 0846643f..d79cd2ce 100644 --- a/.github/workflows/Spack.yml +++ b/.github/workflows/Spack.yml @@ -15,6 +15,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: # This job builds with Spack using every combination of variants and runs the CTest suite each time Spack: diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 13565739..9cf92586 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: developer: runs-on: ubuntu-latest diff --git a/.github/workflows/grib_utils.yml b/.github/workflows/grib_utils.yml index 72ca5b81..4a6a1621 100644 --- a/.github/workflows/grib_utils.yml +++ b/.github/workflows/grib_utils.yml @@ -13,6 +13,11 @@ on: branches: - develop +# Cancel in-progress workflows when pushing to a branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: grib_utils: runs-on: ubuntu-latest