mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
ci: Add workflow to cancel redundant workflows
This is not yet baked into GitHub but can be achived using a public action. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
This commit is contained in:
parent
218635ea9e
commit
b7b34ecce7
23
.github/workflows/cancel-redundant-workflows.yml
vendored
Normal file
23
.github/workflows/cancel-redundant-workflows.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
name: Cancel redundant workflows
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- "Builds"
|
||||||
|
- "Compliance"
|
||||||
|
- "Yocto Compatible"
|
||||||
|
types:
|
||||||
|
- requested
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cancel-redundant-workflows:
|
||||||
|
runs-on: [self-hosted, Linux]
|
||||||
|
steps:
|
||||||
|
- uses: styfle/cancel-workflow-action@0.9.1
|
||||||
|
with:
|
||||||
|
all_but_latest: true
|
||||||
|
workflow_id: ${{ github.event.workflow.id }}
|
Loading…
Reference in New Issue
Block a user