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

pull/995/head
MengzhangLI 2021-12-09 15:56:22 +08:00 committed by GitHub
parent a25aa6a0e1
commit 14a64bc137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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