mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +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
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: fkirc/skip-duplicate-actions@master
|
||||
- uses: styfle/cancel-workflow-action@0.9.0
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
access_token: ${{ github.token }}
|
||||
benchmark:
|
||||
name: Benchmark
|
||||
needs: [prepare]
|
||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -167,7 +167,7 @@ jobs:
|
|||
command: check
|
||||
args: --target ${{ matrix.target }} --features "yaml regex"
|
||||
lint:
|
||||
name: Linting (fmt + clippy)
|
||||
name: Linting
|
||||
needs: [prepare]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
4
.github/workflows/site.yml
vendored
4
.github/workflows/site.yml
vendored
|
@ -8,6 +8,10 @@ jobs:
|
|||
name: Deploy site
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel previous builds
|
||||
uses: styfle/cancel-workflow-action@0.9.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
|
|
Loading…
Reference in a new issue