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: