Skip to content

Commit aadb0bd

Browse files
committed
build: do not run GitHub actions for draft PRs
PR-URL: #35910 Fixes: #35899 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent ce658bd commit aadb0bd

9 files changed

+16
-1
lines changed

.github/workflows/build-tarball.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313

1414
jobs:
1515
build-tarball:
16+
if: github.event.pull_request.draft == false
1617
env:
1718
PYTHON_VERSION: 3.9
1819
runs-on: ubuntu-latest

.github/workflows/build-windows.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build-windows-with-quic:
18+
if: github.event.pull_request.draft == false
1819
runs-on: windows-latest
1920
steps:
2021
- uses: actions/checkout@v2

.github/workflows/coverage-linux.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222

2323
jobs:
2424
coverage-linux:
25+
if: github.event.pull_request.draft == false
2526
runs-on: ubuntu-latest
2627
steps:
2728
- uses: actions/checkout@v2

.github/workflows/coverage-windows.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ env:
2222

2323
jobs:
2424
coverage-windows:
25+
if: github.event.pull_request.draft == false
2526
runs-on: windows-latest
2627
steps:
2728
- uses: actions/checkout@v2

.github/workflows/linters.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414

1515
jobs:
1616
lint-addon-docs:
17+
if: github.event.pull_request.draft == false
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v2
@@ -26,6 +27,7 @@ jobs:
2627
- name: Lint addon docs
2728
run: NODE=$(command -v node) make lint-addon-docs
2829
lint-cpp:
30+
if: github.event.pull_request.draft == false
2931
runs-on: ubuntu-latest
3032
steps:
3133
- uses: actions/checkout@v2
@@ -38,6 +40,7 @@ jobs:
3840
- name: Lint C/C++ files
3941
run: make lint-cpp
4042
lint-md:
43+
if: github.event.pull_request.draft == false
4144
runs-on: ubuntu-latest
4245
steps:
4346
- uses: actions/checkout@v2
@@ -52,6 +55,7 @@ jobs:
5255
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
5356
NODE=$(command -v node) make lint-md
5457
lint-js:
58+
if: github.event.pull_request.draft == false
5559
runs-on: ubuntu-latest
5660
steps:
5761
- uses: actions/checkout@v2
@@ -64,6 +68,7 @@ jobs:
6468
- name: Lint JavaScript files
6569
run: NODE=$(command -v node) make lint-js
6670
lint-py:
71+
if: github.event.pull_request.draft == false
6772
runs-on: ubuntu-latest
6873
steps:
6974
- uses: actions/checkout@v2
@@ -78,14 +83,15 @@ jobs:
7883
make lint-py-build || true
7984
NODE=$(command -v node) make lint-py
8085
lint-sh:
86+
if: github.event.pull_request.draft == false
8187
runs-on: ubuntu-20.04
8288
steps:
8389
- uses: actions/checkout@v2
8490
- run: shellcheck -V
8591
- name: Lint Shell scripts
8692
run: tools/lint-sh.js .
87-
8893
lint-codeowners:
94+
if: github.event.pull_request.draft == false
8995
runs-on: ubuntu-latest
9096
steps:
9197
- uses: actions/checkout@v2

.github/workflows/misc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313

1414
jobs:
1515
build-docs:
16+
if: github.event.pull_request.draft == false
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/checkout@v2

.github/workflows/test-asan.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919

2020
jobs:
2121
test-asan:
22+
if: github.event.pull_request.draft == false
2223
runs-on: ubuntu-latest
2324
env:
2425
CC: clang

.github/workflows/test-linux.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
test-linux:
18+
if: github.event.pull_request.draft == false
1819
runs-on: ubuntu-latest
1920
steps:
2021
- uses: actions/checkout@v2
@@ -30,6 +31,7 @@ jobs:
3031
run: make run-ci -j2 V=1 TEST_CI_ARGS="-p actions"
3132

3233
test-linux-with-quic:
34+
if: github.event.pull_request.draft == false
3335
runs-on: ubuntu-latest
3436
steps:
3537
- uses: actions/checkout@v2

.github/workflows/test-macos.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
test-macOS-with-quic:
18+
if: github.event.pull_request.draft == false
1819
runs-on: macos-latest
1920
steps:
2021
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)