Skip to content

Commit b63e526

Browse files
Swatantra-66xiaoxiang781216
authored andcommitted
ci/build: Skip heavy build matrix on draft pull requests
In response to the ASF Infrastructure notice regarding excessive GitHub Actions runner consumption, skip the heavy build matrix when a pull request is in draft state. Fast checks (check.yml and lint.yml) continue to run to provide early style and syntax feedback. The full build matrix will automatically trigger once the PR is marked 'Ready for review'. Signed-off-by: Swatantra Yadav <[email protected]>
1 parent d5e7ef9 commit b63e526

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ name: Build
1414

1515
on:
1616
pull_request:
17+
types: [opened, synchronize, reopened, ready_for_review]
1718
paths-ignore:
1819
- "AUTHORS"
1920
- "CONTRIBUTING.md"
@@ -43,6 +44,7 @@ concurrency:
4344
jobs:
4445
# Fetch the source from nuttx and nuttx-apps repos
4546
Fetch-Source:
47+
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
4648
runs-on: ubuntu-latest
4749
steps:
4850
- name: Checkout CI scripts

0 commit comments

Comments
 (0)