From f1c6c946364752c2972398a20573bbd07d97bd30 Mon Sep 17 00:00:00 2001 From: Ubbe Date: Thu, 4 Dec 2025 21:44:06 +0700 Subject: [PATCH] ci(frontend): fix concurrency groups (#11551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changes 🏗️ Fix concurrency grouping on Front-end workflows. ## Checklist 📋 ### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] We will see once merged --- .github/workflows/platform-frontend-ci.yml | 4 ++-- .github/workflows/platform-fullstack-ci.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.yml index 33e12aa900..2154fe1385 100644 --- a/.github/workflows/platform-frontend-ci.yml +++ b/.github/workflows/platform-frontend-ci.yml @@ -13,8 +13,8 @@ on: merge_group: concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || format('{0}-{1}', github.ref, github.event.pull_request.number || github.sha) }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} defaults: run: diff --git a/.github/workflows/platform-fullstack-ci.yml b/.github/workflows/platform-fullstack-ci.yml index 0e4b0f8f49..c888ace6c5 100644 --- a/.github/workflows/platform-fullstack-ci.yml +++ b/.github/workflows/platform-fullstack-ci.yml @@ -13,8 +13,8 @@ on: merge_group: concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} defaults: run: