diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index 782c7d31..1e310898 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -6,6 +6,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: REGISTRY: cfaprdbatchcr.azurecr.io/ IMAGE_NAME: pyrenew-hew diff --git a/.github/workflows/pipeline-run-check.yaml b/.github/workflows/pipeline-run-check.yaml index 6e7a03d9..58fbadef 100644 --- a/.github/workflows/pipeline-run-check.yaml +++ b/.github/workflows/pipeline-run-check.yaml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: run-pipeline: strategy: diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e823c865..ccf6d447 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: pre-commit: runs-on: ubuntu-latest diff --git a/.github/workflows/r-cmd-check.yaml b/.github/workflows/r-cmd-check.yaml index 338ed5bc..95d609a7 100644 --- a/.github/workflows/r-cmd-check.yaml +++ b/.github/workflows/r-cmd-check.yaml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: check-hewr: strategy: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0e97ebac..8ef15521 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,6 +5,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: pyrenew-hew-test: name: Run pyrenew_hew tests and collect coverage