ci(workflow): only trigger PR CI on non-draft PRs (#10338)

ci(workflow): only trigger PR CI on non-draft PRs and specific events

Add trigger conditions for PR CI workflow to run on non-draft PRs and specific event types
This commit is contained in:
Phantom 2025-09-25 13:28:51 +08:00 committed by GitHub
parent 0a149e3d9e
commit 2ed99c0cb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,12 +10,14 @@ on:
- main - main
- develop - develop
- v2 - v2
types: [ready_for_review, synchronize, opened]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
PRCI: true PRCI: true
if: github.event.pull_request.draft == false
steps: steps:
- name: Check out Git repository - name: Check out Git repository