From 15a50310bc72a496ac8a803ab1e53a766c39a06a Mon Sep 17 00:00:00 2001 From: Kevin Minehart <5140827+kminehart@users.noreply.github.com> Date: Wed, 16 Apr 2025 09:43:26 -0500 Subject: [PATCH] CI: cancel concurrent test runs in prs but not main (#104110) cancel concurrent builds in prs but not main --- .github/workflows/backend-unit-tests.yml | 2 +- .github/workflows/pr-e2e-tests.yml | 2 +- .github/workflows/pr-test-integration.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backend-unit-tests.yml b/.github/workflows/backend-unit-tests.yml index 9057e58f3df..f1dccf53779 100644 --- a/.github/workflows/backend-unit-tests.yml +++ b/.github/workflows/backend-unit-tests.yml @@ -15,7 +15,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} permissions: contents: read diff --git a/.github/workflows/pr-e2e-tests.yml b/.github/workflows/pr-e2e-tests.yml index cb57210abb0..b7c1f7c8b1b 100644 --- a/.github/workflows/pr-e2e-tests.yml +++ b/.github/workflows/pr-e2e-tests.yml @@ -9,7 +9,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: build-grafana: diff --git a/.github/workflows/pr-test-integration.yml b/.github/workflows/pr-test-integration.yml index f0a5f0a7fa3..a0acad9d0de 100644 --- a/.github/workflows/pr-test-integration.yml +++ b/.github/workflows/pr-test-integration.yml @@ -9,7 +9,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: sqlite: