Cancelling Duplicates #251
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: | |
- "Deploy" | |
- "Deploy to GHCR" | |
- "Check Linting" | |
- "Tests" | |
types: ["requested"] | |
jobs: | |
cancel-duplicate-workflow-runs: | |
name: "Cancel duplicate workflow runs" | |
runs-on: ubuntu-18.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 }} |