From 1c5d44aa0fd82c80d8f82747ecb6b5850747f6b4 Mon Sep 17 00:00:00 2001 From: Nick Cooke Date: Thu, 25 Jan 2024 19:56:14 -0500 Subject: [PATCH] Add job cancellation optimization --- .github/workflows/spm.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/spm.yml b/.github/workflows/spm.yml index f56ec0376d..294ae337e4 100644 --- a/.github/workflows/spm.yml +++ b/.github/workflows/spm.yml @@ -4,6 +4,10 @@ on: push: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: swift-build-run: runs-on: macOS-latest