diff --git a/.github/workflows/broken-links.yaml b/.github/workflows/broken-links.yaml index 367573fda9..2aa5528dce 100644 --- a/.github/workflows/broken-links.yaml +++ b/.github/workflows/broken-links.yaml @@ -41,6 +41,13 @@ jobs: run: | wget --verbose --spider -o spider.log -e robots=off -rp http://127.0.0.1:1313/csm-docs/ - name: Getting output - run: | - sed -n '/broken links/,$p' spider.log - grep -Fxq "Found 0 broken links." spider.log + continue-on-error: true + run: | + sed -i '/http:\/\/127.0.0.1:1313\/favicons\/favicon.ico/d' spider.log + sed -i '/http:\/\/127.0.0.1:1313\/css\/prism.css/d' spider.log + sed -n '/broken links/,$p' spider.log | grep 'http' > broken_links + - name: Check for broken links + run: | + wc -l broken_links + cat broken_links + wc -l broken_links | grep -Fxq "0 broken_links"