[feature] support dead link check (#2579)

Co-authored-by: tomsun28 <tomsun28@outlook.com>
This commit is contained in:
Jast
2024-08-21 23:19:14 +08:00
committed by GitHub
co-authored by tomsun28
parent c2d92eb57d
commit d056ce2aa6
11 changed files with 83 additions and 11 deletions
+8
View File
@@ -114,6 +114,14 @@ jobs:
else
echo "All file names are valid."
fi
- name: Dead Link
run: |
sudo npm install -g markdown-link-check@3.8.7
for file in $(find ./home -name "*.md"); do
if ! grep -Fxq "$file" .github/exclude_files.txt; then
markdown-link-check -c .github/link_check.json -q "$file"
fi
done
- name: NPM INSTALL
working-directory: home
run: npm install