Cancel previous workflow #27
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: Cancel previous workflow | |
on: | |
workflow_run: | |
# List long running github workflows here. | |
workflows: ["Documentation Build"] | |
types: | |
- requested | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Cancel Workflow Action | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
workflow_id: ${{ github.event.workflow.id }} |