Skip to content

Commit 1c37cc6

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-7
2 parents 0f97054 + bb65247 commit 1c37cc6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/validate-artifacts.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,3 @@ jobs:
5454
exit 1
5555
fi
5656
echo "No placeholder content found."
57-
58-
- name: Validate internal links
59-
run: |
60-
broken=0
61-
for f in *.md; do
62-
while IFS= read -r link; do
63-
target=$(echo "$link" | sed 's/.*](//' | sed 's/).*//')
64-
if [[ "$target" != http* ]] && [[ "$target" != "#"* ]] && [ ! -e "$target" ]; then
65-
echo "BROKEN LINK in $f: $target"
66-
broken=$((broken + 1))
67-
fi
68-
done < <(grep -oE '\[.*?\]\([^)]+\)' "$f" 2>/dev/null || true)
69-
done
70-
if [ $broken -gt 0 ]; then
71-
echo ""
72-
echo "$broken broken internal link(s) found."
73-
exit 1
74-
fi
75-
echo "All internal links valid."

0 commit comments

Comments
 (0)