From 2f5092e09d20c7513aac1df4c9086dcdb205eca5 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Tue, 29 Oct 2024 02:02:29 +0100 Subject: [PATCH] Minor edits to workflow file --- .github/workflows/docs_link_check.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docs_link_check.yaml b/.github/workflows/docs_link_check.yaml index eb3042a0..31b3fd88 100644 --- a/.github/workflows/docs_link_check.yaml +++ b/.github/workflows/docs_link_check.yaml @@ -31,7 +31,7 @@ jobs: sphinx-build -b linkcheck source _build/linkcheck > /dev/null 2>&1 || true # Suppress full output grep "broken" _build/linkcheck/output.txt > broken_links.txt # Extract broken links - grep "Not Found for url" _build/linkcheck/output.txt > not_found_links.txt # Extract 'Not Found for url' links + grep "Not Found for url" _build/linkcheck/output.txt > not_found_links.txt # Extract not found links # -s flag checks if the file is not empty. if [ -s broken_links.txt ]; then @@ -41,8 +41,6 @@ jobs: cat broken_links.txt fi - - # Display 'Not Found for url' links if found if [ -s not_found_links.txt ]; then echo "===============" echo "Not Found Links"