Skip to content

Cancelling Duplicates #602

Cancelling Duplicates

Cancelling Duplicates #602

Workflow file for this run

---
# Cancels duplicate github actions when superseded
name: Cancelling Duplicates
on:
workflow_run:
workflows:
- 'Pull Request'
- 'Deploy'
- 'Linting (YAML)'
- 'Linting (Markdown)'
- 'Linting (Shellcheck)'
- 'Linting (Hadolint)'
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 }}