blob: 556317df5459908f7205984533d6a3723bd625e0 [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:
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050018 runs-on: ubuntu-latest
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000019 steps:
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050020 - uses: styfle/cancel-workflow-action@0.10.0
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000021 with:
22 all_but_latest: true
23 workflow_id: ${{ github.event.workflow.id }}