From 0d46f8f3e267f592561bc17e86cc9c4e2a2e44dd Mon Sep 17 00:00:00 2001 From: MistEO Date: Fri, 2 Jan 2026 02:28:55 +0800 Subject: [PATCH] ci: fix concurrency group (#15269) --- .github/workflows/ci.yml | 6 +++++- .github/workflows/smoke-testing.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c2de500d3..58126be2bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.repository }}-${{ github.ref }}-${{ github.ref == 'refs/heads/dev' && github.sha }} + group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }}${{ github.ref == 'refs/heads/dev' && format('-{0}', github.sha) || '' }} cancel-in-progress: true jobs: @@ -41,6 +41,10 @@ jobs: tag: ${{ steps.set_tag.outputs.tag }} prerelease: ${{ steps.set_pre.outputs.prerelease }} steps: + - name: Show concurrency group + run: | + echo "Concurrency Group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }}${{ github.ref == 'refs/heads/dev' && format('-{0}', github.sha) || '' }}" + - name: Checkout repository uses: actions/checkout@v6 with: diff --git a/.github/workflows/smoke-testing.yml b/.github/workflows/smoke-testing.yml index cca4901e78..9e7849a538 100644 --- a/.github/workflows/smoke-testing.yml +++ b/.github/workflows/smoke-testing.yml @@ -32,7 +32,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.repository }}-${{ github.ref }}-${{ github.ref == 'refs/heads/dev' && github.sha }} + group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }}${{ github.ref == 'refs/heads/dev' && format('-{0}', github.sha) || '' }} cancel-in-progress: true jobs: