[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
This commit is contained in:
Sirz Benjie 2025-09-10 11:39:36 -05:00 committed by GitHub
parent 6f3f6026a8
commit 965f3d0eef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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