diff --git a/.github/workflows/build-distros.yml b/.github/workflows/build-distros.yml index 602acb18c1a9..4d8799a5643d 100644 --- a/.github/workflows/build-distros.yml +++ b/.github/workflows/build-distros.yml @@ -17,6 +17,10 @@ env: GOTAGS: ${{ endsWith(github.repository, '-enterprise') && 'consulent' || '' }} GOPRIVATE: github.com/hashicorp # Required for enterprise deps +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: setup: name: Setup diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 2136f43185e2..418d388614ab 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -23,6 +23,11 @@ env: TEST_RESULTS: /tmp/test-results GOPRIVATE: github.com/hashicorp # Required for enterprise deps +# concurrency +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: setup: name: Setup diff --git a/.github/workflows/test-integrations.yml b/.github/workflows/test-integrations.yml index 9fc3a59f905f..3826e4853e61 100644 --- a/.github/workflows/test-integrations.yml +++ b/.github/workflows/test-integrations.yml @@ -25,6 +25,10 @@ env: CONSUL_LATEST_IMAGE_NAME: ${{ endsWith(github.repository, '-enterprise') && github.repository || 'hashicorp/consul' }} GOPRIVATE: github.com/hashicorp # Required for enterprise deps +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: setup: runs-on: ubuntu-latest