blob: 45a74436a2f4e2526c218321bc7695ca3ac75704 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
2#
3# SPDX-License-Identifier: MIT
4
5name: Cancel redundant workflows
6
7on:
8 workflow_run:
9 workflows:
10 - "Builds"
11 - "Compliance"
12 - "Yocto Compatible"
13 types:
14 - requested
15
16jobs:
17 cancel-redundant-workflows:
18 runs-on: [self-hosted, Linux]
19 steps:
20 - uses: styfle/cancel-workflow-action@0.9.1
21 with:
22 all_but_latest: true
23 workflow_id: ${{ github.event.workflow.id }}