name: cancel previous runs
on: [push]
jobs:
  cancel:
    name: 'Cancel Previous Runs'
    runs-on: ubuntu-latest
    timeout-minutes: 3
    steps:
      # https://github.com/styfle/cancel-workflow-action/releases
      - uses: styfle/cancel-workflow-action@514c783324374c6940d1b92bfb962d0763d22de3 # 0.7.0
        with:
          # https://api.github.com/repos/sigp/lighthouse/actions/workflows
          workflow_id: 697364,2434944,4462424,308241,2883401,316
          access_token: ${{ github.token }}
