Afvalwijzer: Cancelling duplicate workflow #800
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |