incubator-nuttx/.github/workflows/cancel.yml

18 lines
535 B
YAML
Raw Normal View History

name: Cancelling Duplicates
on:
workflow_run:
workflows: ["Build", "Check", "Build Documentation", " Lint", "Docker-Linux"]
types: ['requested']
jobs:
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-latest
steps:
- uses: apache/airflow-cancel-workflow-runs@master
name: "Cancel duplicate workflow runs"
with:
cancelMode: allDuplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}