From 0cddaba76f5ae482e2bf7d94e58812a9d1ecaef1 Mon Sep 17 00:00:00 2001 From: Riko Date: Mon, 2 Nov 2026 02:58:00 -0800 Subject: [PATCH] CI: cancel a pull request's superseded test run A new push to a pull request cancels its older Test run; runs on main are never cancelled. --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3425de..e34999f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,11 @@ on: permissions: contents: read +# A new push to a pull request cancels its older run. +concurrency: + group: test-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + defaults: run: shell: bash