Cancel previous runs
Browse files- .github/workflows/ci-cd.yaml +10 -0
.github/workflows/ci-cd.yaml
CHANGED
@@ -21,6 +21,16 @@ name: CI/CD
|
|
21 |
- master
|
22 |
|
23 |
jobs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
yml-md-style-and-link-checks:
|
25 |
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master
|
26 |
with:
|
|
|
21 |
- master
|
22 |
|
23 |
jobs:
|
24 |
+
cancel-previous:
|
25 |
+
name: Cancel Previous Runs
|
26 |
+
runs-on: ubuntu-latest
|
27 |
+
steps:
|
28 |
+
- name: Cancel previous
|
29 |
+
uses: styfle/[email protected]
|
30 |
+
if: ${{github.ref != 'refs/head/master'}}
|
31 |
+
with:
|
32 |
+
access_token: ${{ github.token }}
|
33 |
+
|
34 |
yml-md-style-and-link-checks:
|
35 |
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master
|
36 |
with:
|