Skip to content

Commit c36f9b0

Browse files
committed
Cancle builds on new commits
1 parent 1d17002 commit c36f9b0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/clippy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
runs-on: ubuntu-latest
2929

3030
steps:
31+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
32+
with:
33+
github_token: "${{ secrets.github_token }}"
3134
- name: rust-toolchain
3235
uses: actions-rs/[email protected]
3336
with:

.github/workflows/clippy_bors.yml

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
24+
with:
25+
github_token: "${{ secrets.github_token }}"
2326
- name: Checkout
2427
uses: actions/[email protected]
2528
with:
@@ -65,6 +68,9 @@ jobs:
6568
runs-on: ${{ matrix.os }}
6669

6770
steps:
71+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
72+
with:
73+
github_token: "${{ secrets.github_token }}"
6874
- name: Install dependencies (Linux-i686)
6975
run: |
7076
sudo dpkg --add-architecture i386
@@ -192,6 +198,9 @@ jobs:
192198
runs-on: ubuntu-latest
193199

194200
steps:
201+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
202+
with:
203+
github_token: "${{ secrets.github_token }}"
195204
- name: rust-toolchain
196205
uses: actions-rs/[email protected]
197206
with:

0 commit comments

Comments
 (0)