ci(labels): checkout before area labeler on scheduled runs

Check out the repo when labeling open PRs so actions/labeler reads .github/labeler.yml locally instead of fetching it from the API once per pull request.
This commit is contained in:
Saibamen
2026-10-06 22:41:34 +02:00
committed by Adrià Franch
parent 8b393b6e9a
commit 94ee5e5f91
+2
View File
@@ -23,6 +23,8 @@ jobs:
gh pr list -R "$GITHUB_REPOSITORY" --base "${{ github.event.repository.default_branch }}" -L 200 --json number --jq '.[].number'
echo EOF
} >> "$GITHUB_OUTPUT"
- if: steps.prs.outputs.numbers != ''
uses: actions/checkout@v7
- if: steps.prs.outputs.numbers != ''
uses: actions/labeler@v7
with: