added cancel script

This commit is contained in:
Christopher Pickering 2021-07-29 13:43:24 -05:00
parent 5b301914d4
commit f4d2d30248
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84

17
.github/workflows/cancel.yml vendored Normal file
View file

@ -0,0 +1,17 @@
# 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.9.0
with:
access_token: ${{ github.token }}
workflow_id: test.yml