Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com> |
| 2 | # |
| 3 | # SPDX-License-Identifier: MIT |
| 4 | |
| 5 | name: Cancel redundant workflows |
| 6 | |
| 7 | on: |
| 8 | workflow_run: |
| 9 | workflows: |
| 10 | - "Builds" |
| 11 | - "Compliance" |
| 12 | - "Yocto Compatible" |
| 13 | types: |
| 14 | - requested |
| 15 | |
| 16 | jobs: |
| 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 }} |