File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments