2021-07-26 14:55:09 +02:00
|
|
|
name: Cancel previous workflows
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
2021-07-28 21:18:54 +02:00
|
|
|
workflows: ["Code CI", "Sanitized CI"] # the other workflows finish quickly - no need to skip them for now
|
2021-07-26 14:55:09 +02:00
|
|
|
types:
|
|
|
|
- requested
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
cancel-previous-workflows:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: spaceface777/cancel-workflow-action@0.9.1
|
|
|
|
# don't cancel CI for commits pushed to vlang/v#master (if ci is still too slow, this can be removed safely)
|
|
|
|
if: ${{ github.event.workflow_run.head_repository.full_name != 'vlang/v' || github.event.workflow_run.head_branch != 'master' }}
|
|
|
|
with:
|
2021-07-28 21:18:54 +02:00
|
|
|
workflow_id: ${{ github.event.workflow.id }}
|