Skip to content

Commit ea50584

Browse files
committed
ci: skip workflow on draft pull_request
1 parent 1d0f521 commit ea50584

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-and-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
pull_request:
99
branches:
1010
- main
11+
types: [opened, synchronize, reopened, ready_for_review]
1112

1213
permissions:
1314
contents: write
@@ -57,6 +58,7 @@ jobs:
5758
build:
5859
needs: build-base
5960
runs-on: ubuntu-latest
61+
if: github.event.pull_request.draft == false || github.event_name != 'pull_request'
6062
env:
6163
HTTP_CLI_VERSION: v1.0.1
6264
steps:

0 commit comments

Comments
 (0)