summaryrefslogtreecommitdiff
path: root/.github/workflows/cancel.yml
blob: c3a206fd9b0a817ea17554bd7d54f55e70807a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt

# This action finds in-progress Action jobs for the same branch, and cancels
# them. There's little point in continuing to run superseded jobs.

name: "Cancel"

on:
  push:

permissions:
  contents: read

jobs:
  cancel:
    permissions:
      actions: write  # for styfle/cancel-workflow-action to cancel/stop running workflows
    runs-on: ubuntu-latest
    steps:
      - name: "Cancel Previous Runs"
        uses: styfle/cancel-workflow-action@0.10.0
        with:
          access_token: ${{ github.token }}
          workflow_id: coverage.yml, kit.yml, quality.yml, testsuite.yml