Optimize check-maintainers-sorted workflow with sparse checkout
Only lib and maintainers directories are needed to perform the check.
This commit is contained in:
parent
b493bc2d35
commit
1ec2e2cf1c
|
@ -16,6 +16,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
# pull_request_target checks out the base branch by default
|
# pull_request_target checks out the base branch by default
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
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
|
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
|
||||||
with:
|
with:
|
||||||
# explicitly enable sandbox
|
# explicitly enable sandbox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user