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

View file

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

View file

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