Skip to content

Commit

Permalink
adding markdownflow to check links changedto if loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushalsarode committed Oct 28, 2024
1 parent e86cbaa commit 721c187
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/markdown_files_link_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,13 @@ jobs:
# Find all .md files and check their links
find . -name "*.md" | while read file; do
echo "Checking $file"
markdown-link-check "$file" -c .github/workflows/.markdown-link-check.json -q || echo "$file contains broken links"
if [ markdown-link-check "$file" -c .github/workflows/.markdown-link-check.json -q ]; then
echo -------------------------------------
echo "$file contains broken links"
echo -------------------------------------
else
echo -------------------------------------
echo "$file contains no broken links"
echo -------------------------------------
fi
done

0 comments on commit 721c187

Please sign in to comment.