From 83e5881768c4066245a48f91c3d2e7c5bc7686bd Mon Sep 17 00:00:00 2001 From: Mollusk Date: Mon, 29 Jun 2026 15:51:31 -0400 Subject: [PATCH] ci: cancel superseded in-progress runs (concurrency group) Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 02e17f7..ed27aa3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,6 +8,11 @@ on: pull_request: workflow_dispatch: +# Cancel an in-progress run when a newer commit supersedes it on the same ref. +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: check: runs-on: arch