Skip to content

Commit dbcb4a4

Browse files
authored
Block draft PRs to use CPU minutes. (#2245)
1 parent 72e3399 commit dbcb4a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
pull_request:
1111
branches:
1212
- dev
13+
types: [opened, synchronize, reopened, ready_for_review]
1314
schedule:
1415
# Sunday at 02:10 UTC.
1516
- cron: '10 2 * * 0'
@@ -18,6 +19,7 @@ on:
1819
jobs:
1920
testing:
2021
name: ${{ matrix.os }} - ${{ matrix.python }}
22+
if: github.event.pull_request.draft == false
2123
runs-on: ${{ matrix.os }}
2224
timeout-minutes: 20
2325
strategy:
@@ -114,6 +116,7 @@ jobs:
114116
115117
analyze:
116118
name: Analyze Python
119+
if: github.event.pull_request.draft == false
117120
runs-on: ubuntu-22.04
118121
timeout-minutes: 10
119122
steps:

0 commit comments

Comments
 (0)