From 8a45171d2196f163a24e8b2f28947ad3f6d8b9dd Mon Sep 17 00:00:00 2001 From: Taylor Steinberg Date: Mon, 16 Nov 2026 13:14:47 -0500 Subject: [PATCH] ci: cancel superseded main workflow runs on pull requests Co-Authored-By: Claude Opus 5.5 --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0dac05a4..e119a7be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,11 @@ on: branches: [main] workflow_dispatch: +# Non-PR runs get a unique group so pushes to main and tag releases are never cancelled or queued. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + permissions: id-token: write contents: write