From fdb2e0e7b6091e94adbb1aa96e58d2c61418777f Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Tue, 13 Aug 2024 12:17:05 -0700 Subject: [PATCH] ci: Cancel workflows in progress on new push to PR This ensures only one instance of the workflow is running per PR by canceling any previous runs of the workflow. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cde048d56..2154b610c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request + cancel-in-progress: true # Cancel any previous runs of this workflow + jobs: base: strategy: