Optimize check-maintainers-sorted workflow with sparse checkout

Only lib and maintainers directories are needed to perform the check.
This commit is contained in:
Will Bush 2024-04-06 17:38:33 -05:00
parent b493bc2d35
commit 1ec2e2cf1c
No known key found for this signature in database
GPG Key ID: 3823864B54B13BDA
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ jobs:
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
# Only these directories to perform the check
sparse-checkout: |
lib
maintainers
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
with:
# explicitly enable sandbox