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 dea44ac
Show file tree
Hide file tree
Showing 3 changed files with 30 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/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

0 comments on commit dea44ac

Please sign in to comment.