From e9551fec30b8032152f78bd8dee8f6cd2dfd6f59 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 21 Jan 2025 13:57:27 -0600 Subject: [PATCH] Avoid cancelling in progress workflows on `main` or tags (#9) --- .github/workflows/integration-tests.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 2f39982..6f8432c 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -16,7 +16,8 @@ on: concurrency: group: integration-tests-${{ github.event_name == 'pull_request' && 'pr' || 'push' }}-${{ github.event.pull_request.head.sha || github.sha }} - cancel-in-progress: true + # Run all workflows on "main" and on tags + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: filter-matrix: