Skip to content

Commit 649378c

Browse files
ci: don't run jobs on draft PR
1 parent edea659 commit 649378c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pull-request.yaml

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

910
jobs:
1011
lint:
12+
if: 'github.event.pull_request.draft == false'
1113
uses: ./.github/workflows/lint.yaml
1214

1315
bundlesize:
16+
if: 'github.event.pull_request.draft == false'
1417
uses: ./.github/workflows/bundlesize.yaml
18+
19+
fail_if_pull_request_is_draft:
20+
if: github.event.pull_request.draft == true
21+
runs-on: ubuntu-18.04
22+
steps:
23+
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
24+
run: exit 1

0 commit comments

Comments
 (0)