From 0a71b39c90c4850d702f9cd91558acb9620b1b38 Mon Sep 17 00:00:00 2001 From: Jiahao XU <Jiahao_XU@outlook.com> Date: Thu, 24 Aug 2023 10:03:15 +1000 Subject: [PATCH] ci: Fix `release.yml` being cancelled due to `ci.yml` (#1316) Add a unique value to `concurrency.group` in `ci.yml` to prevent it from being cancelled when releasing crates. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/release.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1921bc2..8fb1186b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,11 @@ name: CI on: workflow_dispatch: workflow_call: + inputs: + additional_key: + required: true + type: string + default: "" merge_group: pull_request: types: @@ -17,7 +22,7 @@ on: - SUPPORT.md concurrency: - group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }} + group: ${{ github.workflow }}-${{ github.ref || github.event.pull_request.number || github.sha }}-${{ inputs.additional_key }} cancel-in-progress: true env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06552072..03e859e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,8 @@ jobs: if: needs.info.outputs.is-release == 'true' needs: info uses: ./.github/workflows/ci.yml + with: + additional_key: ${{ github.run_id }} tag: if: needs.info.outputs.is-release == 'true'