Skip to content

Commit 9f2f5d4

Browse files
GitHub Copilotdjmaxus
andcommitted
ci(matlab): skip draft PR MATLAB and trigger on ready_for_review
Refines CI pull request behavior: - add pull_request types for opened, synchronize, reopened, and ready_for_review - skip heavy MATLAB workflow while PR is in draft state Co-authored-by: djmaxus <44438314+djmaxus@users.noreply.github.com>
1 parent 6a083d6 commit 9f2f5d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
pull_request:
55
branches: [main]
6+
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
67
push:
78
branches: [main]
89
concurrency:
@@ -14,6 +15,7 @@ jobs:
1415
name: Lints
1516
uses: ./.github/workflows/lints.yml
1617
matlab: # heavy MATLAB checks
18+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
1719
needs: lints
1820
uses: ./.github/workflows/matlab.yml
1921
webpage-build:

0 commit comments

Comments
 (0)