Skip to content

Commit 2ff09c0

Browse files
Val Redchenkovredchenko
authored andcommitted
ci: skip draft PRs in CI and OSV scanner workflows
1 parent fdc311b commit 2ff09c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
webui:
1111
name: WebUI Lint & Typecheck
1212
runs-on: ubuntu-latest
13+
if: github.event.pull_request.draft == false || github.event_name != 'pull_request'
1314
defaults:
1415
run:
1516
working-directory: webui

.github/workflows/osv-scanner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
scan-pr:
21-
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
21+
if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'merge_group'
2222
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.3.2
2323

2424
scan-scheduled:

0 commit comments

Comments
 (0)