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

Commit fd9ad5f

Browse files
authored
Merge pull request #96 from OpenChartProject/dev/disable-actions-for-drafts
Disable github actions being triggered on draft PRs, disable publish on PRs
2 parents ad74345 + 9d469ae commit fd9ad5f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ on:
33
push:
44
branches:
55
- master
6-
pull_request:
76

87
jobs:
98
build:
9+
if: github.event.pull_request.draft == false
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -26,6 +26,7 @@ jobs:
2626
path: .
2727

2828
publish-linux:
29+
if: github.event.pull_request.draft == false
2930
runs-on: ubuntu-latest
3031
needs: build
3132

@@ -51,6 +52,7 @@ jobs:
5152
path: dist/linux-x64
5253

5354
publish-osx:
55+
if: github.event.pull_request.draft == false
5456
runs-on: macos-latest
5557
needs: build
5658

@@ -76,6 +78,7 @@ jobs:
7678
path: dist/osx-x64
7779

7880
publish-win:
81+
if: github.event.pull_request.draft == false
7982
runs-on: windows-latest
8083
needs: build
8184

.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)