Skip to content

Commit d61e512

Browse files
authored
Add Cancel for previous runs to more workflows (#1863)
1 parent 9708e54 commit d61e512

File tree

5 files changed

+18
-35
lines changed

5 files changed

+18
-35
lines changed

.github/workflows/cancel.yml

-33
This file was deleted.

.github/workflows/dockerhub-description.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
dockerHubDescription:
1111
runs-on: ubuntu-20.04
1212
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ secrets.GITHUB_TOKEN }}
1317
- uses: actions/checkout@v2
1418

1519
- name: Modify readme for DockerHub

.github/workflows/fossa.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
name: Fossa
1717
runs-on: ubuntu-20.04
1818
steps:
19+
- name: Cancel Previous Runs
20+
uses: styfle/[email protected]
21+
with:
22+
access_token: ${{ secrets.GITHUB_TOKEN }}
1923
- name: Checkout Repository
2024
uses: actions/checkout@v2
2125
- name: Scan

.github/workflows/lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
name: Lint
2828
runs-on: ubuntu-20.04
2929
steps:
30+
- name: Cancel Previous Runs
31+
uses: styfle/[email protected]
32+
with:
33+
access_token: ${{ secrets.GITHUB_TOKEN }}
3034
- name: Checkout Repository
3135
uses: actions/checkout@v2
3236
- name: Lint Code

.github/workflows/sync.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
repo-sync:
1111
runs-on: ubuntu-20.04
1212
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ secrets.GITHUB_TOKEN }}
1317
- name: Repo Sync
1418
uses: wei/git-sync@v3
1519
with:
@@ -22,7 +26,7 @@ jobs:
2226
# This job open a PR to sync the generated CRD files across to nginx-ingress-operator
2327
# (see .github/sync.yml for config details)
2428
crds-sync:
25-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-20.04
2630
steps:
2731
- name: Checkout Repository
2832
uses: actions/checkout@v2
@@ -47,7 +51,7 @@ jobs:
4751
- nginxinc/nginx-plus-go-client
4852
- nginxinc/nginx-asg-sync
4953
- nginxinc/nginx-ns1-gslb
50-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-20.04
5155
steps:
5256
- name: Checkout
5357
uses: actions/checkout@v2

0 commit comments

Comments
 (0)