mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Improve cancelling of previous runs
This commit is contained in:
parent
99d4aba95c
commit
f42495d552
3 changed files with 7 additions and 3 deletions
4
.github/workflows/benchmark.yml
vendored
4
.github/workflows/benchmark.yml
vendored
|
@ -8,9 +8,9 @@ jobs:
|
||||||
name: Prepare
|
name: Prepare
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: fkirc/skip-duplicate-actions@master
|
- uses: styfle/cancel-workflow-action@0.9.0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ github.token }}
|
access_token: ${{ github.token }}
|
||||||
benchmark:
|
benchmark:
|
||||||
name: Benchmark
|
name: Benchmark
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -167,7 +167,7 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --target ${{ matrix.target }} --features "yaml regex"
|
args: --target ${{ matrix.target }} --features "yaml regex"
|
||||||
lint:
|
lint:
|
||||||
name: Linting (fmt + clippy)
|
name: Linting
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
4
.github/workflows/site.yml
vendored
4
.github/workflows/site.yml
vendored
|
@ -8,6 +8,10 @@ jobs:
|
||||||
name: Deploy site
|
name: Deploy site
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cancel previous builds
|
||||||
|
uses: styfle/cancel-workflow-action@0.9.0
|
||||||
|
with:
|
||||||
|
access_token: ${{ github.token }}
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
Loading…
Reference in a new issue