diff --git a/.github/workflows/ci-large.yml b/.github/workflows/ci-large.yml index 0e7801f27..6f0ab76d4 100644 --- a/.github/workflows/ci-large.yml +++ b/.github/workflows/ci-large.yml @@ -11,6 +11,11 @@ defaults: run: shell: bash +# cancel previous runs if new commits are pushed to the PR, but run for each commit on master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: unit-large: name: 'Unit' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ea8a44ef..eeb2a961f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,11 @@ defaults: run: shell: bash +# cancel previous runs if new commits are pushed to the PR, but run for each commit on master +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: unit: name: 'Unit'