Cancel previous jobs #3659
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 jobs | |
on: | |
workflow_run: | |
workflows: ["CI"] | |
types: | |
- requested | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
workflow_id: ${{ github.event.workflow.id }} |