.github/workflows/cancel.yml
name: Cancel Previous Runs
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cancel:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.4.1
with:
workflow_id: 1930812, 1934911, 1330617
access_token: ${{ github.token }}