Skip to content

Afvalwijzer: Cancelling duplicate workflow #370

Afvalwijzer: Cancelling duplicate workflow

Afvalwijzer: Cancelling duplicate workflow #370

name: 'Afvalwijzer: Cancelling duplicate workflow'
on:
workflow_run:
workflows:
- 'Afvalwijzer: Validation And Formatting'
types: ['requested']
workflow_dispatch:
jobs:
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-20.04
steps:
- uses: potiuk/cancel-workflow-runs@master
name: "Cancel duplicate workflow runs"
with:
cancelMode: allDuplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}