[Fix] Cancel previous runs that are not completed #1118

This commit is contained in:
MengzhangLI 2021-12-09 15:56:22 +08:00 committed by GitHub
parent 2e4da3ea75
commit 12d902c02c
3 changed files with 12 additions and 0 deletions

View File

@ -19,6 +19,10 @@ on:
- 'docs_zh-CN/**'
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_cpu:
runs-on: ubuntu-18.04

View File

@ -2,6 +2,10 @@ name: deploy
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-n-publish:
runs-on: ubuntu-latest

View File

@ -2,6 +2,10 @@ name: lint
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-18.04