Skip to content

Commit

Permalink
fix config file usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 11, 2024
1 parent 37165f0 commit f1022ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -print0 | xargs -0 -n1 markdown-link-check -c config.json
find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -c $GITHUB_WORKSPACE/md_checker_config.json
8 changes: 0 additions & 8 deletions .github/workflows/config.json

This file was deleted.

0 comments on commit f1022ad

Please sign in to comment.