From 721c187b38cbd2e2d513ca3755c235114f1f66c7 Mon Sep 17 00:00:00 2001 From: Khushalsarode Date: Tue, 29 Oct 2024 03:21:55 +0530 Subject: [PATCH] adding markdownflow to check links changedto if loop --- .github/workflows/markdown_files_link_check.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/markdown_files_link_check.yaml b/.github/workflows/markdown_files_link_check.yaml index 8645a934..4ae67a5f 100644 --- a/.github/workflows/markdown_files_link_check.yaml +++ b/.github/workflows/markdown_files_link_check.yaml @@ -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 \ No newline at end of file