From 103ab56e828bd31fdd767e728721ef6bde6393df Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Tue, 19 Dec 2023 09:20:31 +0800 Subject: [PATCH] ci(github-actions): checkout only .github/labeler.yml when running labeler --- .github/workflows/label_pr.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/label_pr.yml b/.github/workflows/label_pr.yml index ef5541965..6977c7819 100644 --- a/.github/workflows/label_pr.yml +++ b/.github/workflows/label_pr.yml @@ -10,4 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/labeler.yaml + sparse-checkout-cone-mode: false - uses: actions/labeler@v5 + with: + configuration-path: .github/labeler.yaml