Skip to content

Commit 9693061

Browse files
shoumikhinkeyprocedure
authored andcommitted
Update check_xrefs.sh (#10343)
Skip those with spaces that aren't actually xrefs
1 parent b03a2d8 commit 9693061

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/doc-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
- name: Check URLs
2222
run: bash ./scripts/check_urls.sh
2323

24-
check-links:
24+
check-xrefs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v3
2828
- name: Check Links
29-
run: bash ./scripts/check_links.sh
29+
run: bash ./scripts/check_xrefs.sh
3030

3131
build:
3232
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main

scripts/check_links.sh renamed to scripts/check_xrefs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ while IFS=: read -r filepath link; do
2424
fi
2525
done < <(
2626
git --no-pager grep --no-color -I -o -E \
27-
'\[[^]]+\]\([^)]*/[^)]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*"' \
27+
'\[[^]]+\]\([^[:space:])]*/[^[:space:])]*\)|href="[^"]*/[^"]*"|src="[^"]*/[^"]*"' \
2828
-- '*' \
2929
':(exclude).*' \
3030
':(exclude)**/.*' \

0 commit comments

Comments
 (0)