Skip to content

Commit adad371

Browse files
committed
Run only one action for build pr and develop and cancel old one
1 parent dec09ee commit adad371

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build-develop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- 'chore.gh-build-patch'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
run-eslint-and-test:
1317
name: ESLint and Test

.github/workflows/build-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- '*'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
run-eslint-and-test:
1418
name: ESLint and Test

0 commit comments

Comments
 (0)