mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
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:
parent
c99b83b720
commit
0a71b39c90
2 changed files with 8 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -3,6 +3,11 @@ name: CI
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
additional_key:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
merge_group:
|
merge_group:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
|
@ -17,7 +22,7 @@ on:
|
||||||
- SUPPORT.md
|
- SUPPORT.md
|
||||||
|
|
||||||
concurrency:
|
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
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -26,6 +26,8 @@ jobs:
|
||||||
if: needs.info.outputs.is-release == 'true'
|
if: needs.info.outputs.is-release == 'true'
|
||||||
needs: info
|
needs: info
|
||||||
uses: ./.github/workflows/ci.yml
|
uses: ./.github/workflows/ci.yml
|
||||||
|
with:
|
||||||
|
additional_key: ${{ github.run_id }}
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
if: needs.info.outputs.is-release == 'true'
|
if: needs.info.outputs.is-release == 'true'
|
||||||
|
|
Loading…
Add table
Reference in a new issue