Cancel previous workflow #13
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/[email protected] | |
with: | |
workflow_id: ${{ github.event.workflow.id }} |