From 5e7ee84dc9f07cc6afc0b494862e46abcd838bfb Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 15 Jun 2026 16:05:42 +0200 Subject: [PATCH] ci: fix deployment concurrency groups by target environment --- .gitea/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e38c88a56..9a3b10375 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,7 +18,8 @@ env: COREPACK_NPM_REGISTRY: "https://registry.npmmirror.com" concurrency: - group: deploy-pipeline + # Group by target environment: new RC cancels old RC, but doesn't cancel Prod. + group: ${{ github.workflow }}-${{ github.ref_type == 'tag' && (contains(github.ref_name, '-') && 'staging' || 'production') || (github.ref_name == 'main' && 'testing' || format('branch-{0}', github.ref_name)) }} cancel-in-progress: true jobs: