Skip to content

Commit 5e246d5

Browse files
BIGWangYuDongZwwWayne
authored andcommitted
[Fix] Cancel previous runs that are not completed (#6772)
* [Fix] Cancel previous runs that are not completed * Empty to check * Empty to check
1 parent b7ddb9a commit 5e246d5

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
- 'docs/**'
2020
- 'docs_zh-CN/**'
2121

22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
2227
jobs:
2328
build_cpu:
2429
runs-on: ubuntu-18.04

.github/workflows/build_pat.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: build_pat
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
build_parrots:
711
runs-on: ubuntu-latest

.github/workflows/deploy.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: deploy
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
build-n-publish:
711
runs-on: ubuntu-latest

.github/workflows/lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: lint
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
lint:
711
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)