Improve cancelling of previous runs

This commit is contained in:
Pavan Kumar Sunkara 2021-04-13 22:49:19 +01:00
parent 99d4aba95c
commit f42495d552
3 changed files with 7 additions and 3 deletions

View file

@ -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]

View file

@ -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:

View file

@ -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