diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-05 13:22:46 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-12-05 14:07:53 -0500 |
commit | 802f60c8df2034913db242323a8d0b3a15abe5eb (patch) | |
tree | 3d3ab8f8e19c21802b6e57325a378a6a2498fac0 /.github | |
parent | 3f18bfc67aa40797d68745d5ea26a369b6c97ae9 (diff) | |
download | python-coveragepy-git-802f60c8df2034913db242323a8d0b3a15abe5eb.tar.gz |
Auto-cancel workflows when pushing to a branch
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cancel.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml new file mode 100644 index 00000000..a0da0a1e --- /dev/null +++ b/.github/workflows/cancel.yml @@ -0,0 +1,20 @@ +# 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 superceded jobs. + +name: Cancel + +on: + push: + +jobs: + cancel: + runs-on: ubuntu-latest + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + workflow_id: coverage.yml, kit.yml, quality.yml, testsuite.yml |