Skip to content

Commit 881d230

Browse files
committed
ci: add concurrency control to auto-cancel in-progress jobs in build and docker workflows
Signed-off-by: Huaqi Fang <[email protected]>
1 parent 9e75f42 commit 881d230

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
name: Build and Test Linux SDK
44

5+
# auto cancel previous in-progress job
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
510
# Controls when the action will run. Triggers the workflow on push or pull request
611
# events but only for the dev_* branch
712
on:

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Build Linux SDK Docker Image
22

3+
# auto cancel previous in-progress job
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
38
on:
49
push:
510
branches: [ dev* ]

0 commit comments

Comments
 (0)