Skip to content

Commit 5b54dc1

Browse files
authored
Add concurrency configuration for CI workflow (#3009)
* Add concurrency configuration for CI workflow * Skip ci actions when in draft mode
1 parent 317d798 commit 5b54dc1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ on:
55
branches:
66
- master
77
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
89

910
env:
1011
TZ: Asia/Singapore
1112
NODE_OPTIONS: --max_old_space_size=8192
1213
GENERATE_SOURCEMAP: false
1314

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1419
jobs:
1520
lint:
21+
if: github.event.pull_request.draft == false
1622
runs-on: ubuntu-latest
1723
strategy:
1824
matrix:

0 commit comments

Comments
 (0)