aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cancel-redundant-workflows.yml
blob: 45a74436a2f4e2526c218321bc7695ca3ac75704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 }}