mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-11-02 10:50:30 +00:00
improve check-links.yml
This commit is contained in:
parent
5ca4384eb7
commit
33b27368a3
13
.github/workflows/check-links.yml
vendored
13
.github/workflows/check-links.yml
vendored
@ -19,6 +19,17 @@ jobs:
|
||||
- name: Install Markdown Link Checker
|
||||
run: npm install -g markdown-link-check
|
||||
|
||||
- name: Create config for markdown link checker
|
||||
run: |
|
||||
echo '{
|
||||
"projectBaseUrl":"${{ github.workspace }}",
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "^#"
|
||||
}
|
||||
]
|
||||
}' > $GITHUB_WORKSPACE/md_checker_config.json
|
||||
|
||||
- name: Find Markdown Files and Check Links
|
||||
run: |
|
||||
find . -name '*.md' -exec markdown-link-check {} \;
|
||||
find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -c $GITHUB_WORKSPACE/md_checker_config.json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user