[CI] Cancel previous runs that are not completed for a given workflow. (#666)

pull/651/head
liukuikun 2021-12-13 19:08:23 +08:00 committed by GitHub
parent 5caa945a8d
commit a15da8143d
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:
- 'examples/**' - 'examples/**'
- '.dev_scripts/**' - '.dev_scripts/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
build_cpu: build_cpu:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04

View File

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

View File

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