mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
build: Avoid cancellation of release build workflow on MQ
When running on the merge group this workflow is run twice - once for the create event (merge queue creates a new branch) and once for the merge_group event. Unfortunately the second event would cause the first to be cancelled - unfortunately sometimes that second event is the create event where the job in the workflow only runs if it is also a tag. By creating distinct concurrency groups for each event type then the cross cancellation can be avoided. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
0f71956d6d
commit
6f49d7f192
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Cloud Hypervisor Release
|
name: Cloud Hypervisor Release
|
||||||
on: [create, merge_group]
|
on: [create, merge_group]
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user