From 873f8a024cfe93273040709e76d842257cc965a6 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 29 May 2024 20:55:46 -0400 Subject: [PATCH] chore(ci): Add concurrency groups to cancel redundant CI builds --- .github/workflows/publish.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ .github/workflows/testpsijslurm.yml | 4 ++++ .github/workflows/testsingularity.yml | 4 ++++ .github/workflows/testslurm.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b515c076c1..640a5b0d09 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,10 @@ on: release: types: [published] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4319b65649..3f788ea6c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: auto-release: runs-on: ubuntu-latest diff --git a/.github/workflows/testpsijslurm.yml b/.github/workflows/testpsijslurm.yml index eb33eca612..9dc9100800 100644 --- a/.github/workflows/testpsijslurm.yml +++ b/.github/workflows/testpsijslurm.yml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/testsingularity.yml b/.github/workflows/testsingularity.yml index 3d3a384583..6cb597cdf8 100644 --- a/.github/workflows/testsingularity.yml +++ b/.github/workflows/testsingularity.yml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Build diff --git a/.github/workflows/testslurm.yml b/.github/workflows/testslurm.yml index e4f4bddec2..0e1d17f09b 100644 --- a/.github/workflows/testslurm.yml +++ b/.github/workflows/testslurm.yml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: