Skip to content

Commit a5009f3

Browse files
committed
don't run github actions on draft PRs
1 parent 11d8ed7 commit a5009f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/deploy-dev.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on:
66
pull_request:
77
branches:
88
- main
9+
types: [opened, synchronize, reopened, ready_for_review]
10+
911
jobs:
1012
test-unit:
13+
if: github.event.pull_request.draft == false
1114
runs-on: ubuntu-latest
1215
name: Run Unit Tests
1316
steps:
@@ -25,6 +28,7 @@ jobs:
2528
- name: Run unit testing
2629
run: make test_unit
2730
deploy-dev:
31+
if: github.event.pull_request.draft == false
2832
runs-on: ubuntu-latest
2933
concurrency:
3034
group: ${{ github.event.repository.name }}-dev-env
@@ -69,6 +73,7 @@ jobs:
6973
branch: main
7074

7175
test-dev:
76+
if: github.event.pull_request.draft == false
7277
runs-on: ubuntu-latest
7378
name: Run Live Tests
7479
needs:

0 commit comments

Comments
 (0)