From a3213bf3e24adbba86091aeeffacb65cfa8c97d0 Mon Sep 17 00:00:00 2001 From: Mateusz Pstrucha Date: Tue, 22 Sep 2026 20:33:51 +0200 Subject: [PATCH] Cancel superseded CI runs A single runner serves all three repos, so superseded pushes queueing up full builds is a real cost. Releases are left uncovered deliberately: cancelling a publish halfway is worse than running it twice. Co-Authored-By: Claude Opus 5 --- .gitea/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c5f227d..79cf0a9 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,6 +5,13 @@ on: branches: [master] pull_request: +# One runner serves all three repos, so a queue is a real cost: superseding +# pushes shouldn't each wait for a full build. Releases deliberately aren't +# covered — cancelling a publish halfway is worse than running it twice. +concurrency: + group: ${{ gitea.workflow }}-${{ gitea.ref }} + cancel-in-progress: true + jobs: test: runs-on: rocky-10