From 461337cdecaa820fdc6ecb6a3252e1e88ea98cd2 Mon Sep 17 00:00:00 2001 From: Sylvester Damgaard Date: Wed, 18 Nov 2026 20:12:04 +0000 Subject: [PATCH] ci: cancel a pull request's superseded runs --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27771ae..5f96b0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,11 @@ on: branches: [main] pull_request: +concurrency: + # A new push to a pull request cancels its older run; runs on main are never cancelled. + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: runs-on: ubuntu-latest