diff --git a/.github/workflows/e2e-fork.yml b/.github/workflows/e2e-fork.yml index 58ff2d2a759..19d397230a9 100644 --- a/.github/workflows/e2e-fork.yml +++ b/.github/workflows/e2e-fork.yml @@ -9,6 +9,11 @@ on: - '**.md' - 'LICENSE' +# cancel workflows if a new one is triggered on the same branch. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: # dynamically build a matrix of test/test suite pairs to run build-test-matrix: diff --git a/.github/workflows/e2e-wasm.yaml b/.github/workflows/e2e-wasm.yaml index 6970b558032..7a186acf11b 100644 --- a/.github/workflows/e2e-wasm.yaml +++ b/.github/workflows/e2e-wasm.yaml @@ -17,6 +17,11 @@ on: # trigger workflow if PR is marked ready for review. - ready_for_review +# cancel workflows if a new one is triggered on the same branch. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: # determine-image-tag will either output the PR number e.g. pr-1234 or the string main. # this will be used to tag the images that are built during the workflow. diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 041dd04489c..a15261b4888 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -16,6 +16,10 @@ on: - 'docs/**' - '**.md' - 'LICENSE' +# cancel workflows if a new one is triggered on the same branch. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: # determine-image-tag will either output the PR number e.g. pr-1234 or the string main.