Skip to content

Commit

Permalink
Minor edits to workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 29, 2024
1 parent f3de694 commit 2f5092e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docs_link_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 2f5092e

Please sign in to comment.