diff options
Diffstat (limited to '.github/workflows/cancel-redundant-workflows.yml')
-rw-r--r-- | .github/workflows/cancel-redundant-workflows.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/cancel-redundant-workflows.yml b/.github/workflows/cancel-redundant-workflows.yml new file mode 100644 index 0000000..556317d --- /dev/null +++ b/.github/workflows/cancel-redundant-workflows.yml @@ -0,0 +1,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: ubuntu-latest + steps: + - uses: styfle/cancel-workflow-action@0.10.0 + with: + all_but_latest: true + workflow_id: ${{ github.event.workflow.id }} |