Skip to content

Commit

Permalink
fix(ci): cancel previous workflow runs (#3140)
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f committed Mar 7, 2023
1 parent 4b436f4 commit a322a19
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
linting:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/copyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
copyright-check:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
update:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-grandpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
env:
DOCKER_BUILDKIT: "1"
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: docker/build-push-action@v4
with:
load: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
env:
DOCKER_BUILDKIT: "1"
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: docker/build-push-action@v4
with:
load: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
env:
DOCKER_BUILDKIT: "1"
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: docker/build-push-action@v4
with:
load: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
env:
DOCKER_BUILDKIT: "1"
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: docker/build-push-action@v4
with:
load: true
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
timeout-minutes: 30
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/setup-go@v3
with:
go-version: 1.19
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
]
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/setup-go@v3
with:
go-version: 1.19
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/mocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
mocks-check:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/checkout@v3

- uses: actions/setup-go@v3
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
timeout-minutes: 60
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
all_but_latest: true

- uses: actions/setup-go@v3
with:
go-version: 1.19
Expand Down

0 comments on commit a322a19

Please sign in to comment.