Skip to content

Commit

Permalink
ci: Cancel prior runs
Browse files Browse the repository at this point in the history
Prevent actions from backing up on repeated pushes.
  • Loading branch information
olix0r committed Dec 3, 2023
1 parent 2fe5e7a commit 159621c
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/check-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ env:
RUSTFLAGS: "-D warnings -A deprecated -C debuginfo=0"

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432
with:
all_but_latest: true
access_token: ${{ github.token }}

check-all:
timeout-minutes: 20
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/check-each.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ env:
RUSTFLAGS: "-D warnings -A deprecated -C debuginfo=0"

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432
with:
all_but_latest: true
access_token: ${{ github.token }}

list-changed-crates:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ env:
# types) and have the potential to be flakey as they depend on opening sockets and may have timing
# sensitivity.
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432
with:
all_but_latest: true
access_token: ${{ github.token }}

test:
timeout-minutes: 20
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ on:
- .github/workflows/k8s.yml

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432
with:
all_but_latest: true
access_token: ${{ github.token }}

k3d-linkerd-install:
timeout-minutes: 20
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ env:
RUSTUP_MAX_RETRIES: 10

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432
with:
all_but_latest: true
access_token: ${{ github.token }}

meta:
timeout-minutes: 5
runs-on: ubuntu-latest
Expand Down

0 comments on commit 159621c

Please sign in to comment.