Skip to content

Commit 327a3d3

Browse files
authored
[Docs] Catch more redirects and partials (#23785)
1 parent 4a87ad3 commit 327a3d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/potential-redirects-or-partials.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
files=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
3030
-H "Accept: application/vnd.github.v3+json" \
31-
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
31+
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" | \
3232
jq -r '.[] | select(.status=="renamed" or .status=="removed") | select (.filename | startswith("src/content/docs")) | select(.filename | endswith(".mdx")) | if .status == "renamed" then .previous_filename else .filename end' | \
3333
sed -e 's|^src/content/docs||' -e 's|/index\.mdx$|/|' -e 's|\.mdx$|/|')
3434
# Use random delimiter for security reasons
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
files=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
4545
-H "Accept: application/vnd.github.v3+json" \
46-
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
46+
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files?per_page=100" | \
4747
jq -r '.[] | select(.status=="modified") | select (.filename | startswith("src/content/partials")) | select(.filename | endswith(".mdx")) | .filename' | \
4848
sed -e 's|^src/content/partials||' -e 's|\.mdx$|/|')
4949
# Use random delimiter for security reasons

0 commit comments

Comments
 (0)