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>
This commit is contained in:
Jiahao XU 2023-08-24 10:03:15 +10:00 committed by GitHub
parent c99b83b720
commit 0a71b39c90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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'