From 9e70bd1c8eba6d686996e66966f3ef039c88e258 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Sun, 12 Jul 2026 22:08:58 +0000 Subject: [PATCH] ci: don't cancel-in-progress for main-branch runs (only pull_request) (#152) --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fdd8072..4ae9b7a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,10 +29,13 @@ env: CARGO_NET_RETRY: "10" CARGO_HTTP_MULTIPLEXING: "false" -# Cancel in-progress runs for the same branch/PR +# Cancel superseded PR runs, but NEVER cancel main-branch runs — those build and +# deploy per-service images, and cancelling one merge's deploy when the next +# merge lands leaves a service un-deployed (as happened between two back-to-back +# merges). So cancel-in-progress only for pull_request events. concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: # ---------------------------------------------------------------------------