Skip to content

Commit 4f716d8

Browse files
committed
feat(workflows): skip pr workflows on draft prs
1 parent 9932316 commit 4f716d8

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010

1111
jobs:
1212
build:
13+
if: github.event.pull_request.draft == false
1314
name: Build YouTube Music
1415
runs-on: ${{ matrix.os }}
1516
strategy:

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
dependency-review:
15+
if: github.event.pull_request.draft == false
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: "Checkout Repository"

.github/workflows/pr-build-artifacts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99

1010
jobs:
1111
check-permissions:
12+
if: github.event.pull_request.draft == false
1213
name: Check if user has write access
1314
runs-on: ubuntu-latest
1415
outputs:

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ env:
77

88
jobs:
99
eslint:
10+
if: github.event.pull_request.draft == false
1011
name: runner / eslint
1112
runs-on: ubuntu-latest
1213
permissions:

0 commit comments

Comments
 (0)