From 965f3d0eef451a58defcac81181bab3d910f62a2 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Wed, 10 Sep 2025 11:39:36 -0500 Subject: [PATCH 1/2] [GitHub] Optimize workflow files (#6539) * Use sparse checkout for paths-filter to only grab the test-filters file * Tweak docs workflow to not download public directory * stop downloading openssh and git --- .github/workflows/github-pages.yml | 15 ++++++--------- .github/workflows/tests.yml | 4 ++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 6e056bc4032..a53eba39e1b 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -27,20 +27,17 @@ jobs: # Only push docs when running on pushes to main/beta DRY_RUN: ${{github.event_name != 'push' || (github.ref_name != 'beta' && github.ref_name != 'main')}} - strategy: - fail-fast: false - steps: - name: Checkout repository for Typedoc uses: actions/checkout@v4 with: - submodules: 'recursive' path: pokerogue_docs - - - name: Install OS package - run: | - sudo apt update - sudo apt install -y git openssh-client + sparse-checkout: | + /* + !/public/ + /public/images/pokemon/variant/_exp_masterlist.json + /public/images/pokemon/variant/_masterlist.json + sparse-checkout-cone-mode: false - name: Install pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 39506096298..e1d6e3af60e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,10 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/test-filters.yml + sparse-checkout-cone-mode: false - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 id: filter From d3462a141233c82f7e67ef0580ed4ef8ecfc3804 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Wed, 10 Sep 2025 11:42:38 -0500 Subject: [PATCH 2/2] fix: get log.png --- .github/workflows/github-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index a53eba39e1b..d8482cba83c 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -37,6 +37,7 @@ jobs: !/public/ /public/images/pokemon/variant/_exp_masterlist.json /public/images/pokemon/variant/_masterlist.json + /public/images/logo.png sparse-checkout-cone-mode: false - name: Install pnpm