Cancelling Duplicates #1540
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: Cancelling Duplicates | |
on: | |
workflow_run: | |
workflows: | |
- 'Pull Request' | |
- 'Deploy' | |
- 'Linting (Non-Image)' | |
types: ['requested'] | |
jobs: | |
cancel-duplicate-workflow-runs: | |
name: "Cancel duplicate workflow runs" | |
runs-on: ubuntu-latest | |
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 }} |