summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorWill Bush <will.g.bush@gmail.com>2024-04-06 17:38:33 -0500
committerWill Bush <will.g.bush@gmail.com>2024-04-06 17:38:33 -0500
commit1ec2e2cf1c385d8b8706021fd9f6e723128a2823 (patch)
treed0fca011bf442f30c0d0ae73eb49a8978099d798 /.github
parentb493bc2d35b8dd29b510fa2b392f427ac9d5d756 (diff)
Optimize check-maintainers-sorted workflow with sparse checkout
Only lib and maintainers directories are needed to perform the check.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check-maintainers-sorted.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/check-maintainers-sorted.yaml b/.github/workflows/check-maintainers-sorted.yaml
index eb7d22ea66bb..74012e266365 100644
--- a/.github/workflows/check-maintainers-sorted.yaml
+++ b/.github/workflows/check-maintainers-sorted.yaml
@@ -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