mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-05 05:04:45 +02:00

No need to bottleneck on the self hosted worker(s) when this is a light job that needs to run as soon as possible so that it can cancel early. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
24 lines
484 B
YAML
24 lines
484 B
YAML
# 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: ubuntu-latest
|
|
steps:
|
|
- uses: styfle/cancel-workflow-action@0.10.0
|
|
with:
|
|
all_but_latest: true
|
|
workflow_id: ${{ github.event.workflow.id }}
|