Skip to content

Commit

Permalink
adding markdownflow to check links 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushalsarode committed Oct 28, 2024
1 parent d363ae9 commit e86cbaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/markdown_files_link_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
- name: Verify config file exists
run: |
ls -la .markdown-link-check.json
cat .markdown-link-check.json
ls -la .github/workflows/.markdown-link-check.json
cat .github/workflows/.markdown-link-check.json
# Find and check all Markdown files, using the config file
# Check links in all Markdown files
- name: Check links in Markdown files
run: |
# Find all .md files and check their links
find . -name "*.md" | while read file; do
echo "Checking $file"
markdown-link-check "$file" -c .markdown-link-check.json -q || echo "$file contains broken links"
done
markdown-link-check "$file" -c .github/workflows/.markdown-link-check.json -q || echo "$file contains broken links"
done

0 comments on commit e86cbaa

Please sign in to comment.