Skip to content

Cancel previous workflows #375

Cancel previous workflows

Cancel previous workflows #375

Workflow file for this run

name: Cancel previous workflows
on:
workflow_run:
workflows: ["Code CI"]
types:
- requested
jobs:
cancel-previous-workflows:
runs-on: ubuntu-latest
steps:
- uses: spaceface777/[email protected]
# don't cancel CI for commits pushed to vlang/vab#master (if ci is still too slow, this can be removed safely)
if: ${{ github.event.workflow_run.head_repository.full_name != 'vlang/vab' || github.event.workflow_run.head_branch != 'master' }}
with:
# workflow ids for `Code CI` (from https://api.github.com/repos/vlang/vab/actions/workflows):
workflow_id: 4580346,9298031,14524291