From e9d9f76c68f842310c4af09e74dbbd6fbf84a649 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Mon, 23 Mar 2026 12:48:22 -0700 Subject: [PATCH] cancel runs when a new commit is pushed to a pr branch --- .github/workflows/pr-test-suite.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-test-suite.yml b/.github/workflows/pr-test-suite.yml index 12f801cf2..86cbbe6a1 100644 --- a/.github/workflows/pr-test-suite.yml +++ b/.github/workflows/pr-test-suite.yml @@ -9,6 +9,10 @@ on: branches: - main - "*.x" +concurrency: + # https://stackoverflow.com/questions/74117321/if-condition-in-concurrency-in-gha + group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} + cancel-in-progress: true jobs: standard_tests_jobs: name: standard_tests_jobs