Skip to content
This repository was archived by the owner on Mar 26, 2021. It is now read-only.

Commit 13e849b

Browse files
committed
Disable github actions being triggered on draft PRs
1 parent ad74345 commit 13e849b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
branches:
55
- master
66
pull_request:
7+
types: [opened, reopened, synchronize, ready_for_review]
78

89
jobs:
910
build:
11+
if: github.event.pull_request.draft == false
1012
runs-on: ubuntu-latest
1113

1214
steps:
@@ -26,6 +28,7 @@ jobs:
2628
path: .
2729

2830
publish-linux:
31+
if: github.event.pull_request.draft == false
2932
runs-on: ubuntu-latest
3033
needs: build
3134

@@ -51,6 +54,7 @@ jobs:
5154
path: dist/linux-x64
5255

5356
publish-osx:
57+
if: github.event.pull_request.draft == false
5458
runs-on: macos-latest
5559
needs: build
5660

@@ -76,6 +80,7 @@ jobs:
7680
path: dist/osx-x64
7781

7882
publish-win:
83+
if: github.event.pull_request.draft == false
7984
runs-on: windows-latest
8085
needs: build
8186

.github/workflows/run-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: run-tests
22
on:
3-
pull_request:
43
push:
54
branches:
65
- master
6+
pull_request:
7+
types: [opened, reopened, synchronize, ready_for_review]
78

89
jobs:
910
build:
11+
if: github.event.pull_request.draft == false
1012
runs-on: ubuntu-latest
1113

1214
steps:

0 commit comments

Comments
 (0)