Skip to content

Commit

Permalink
Update broken-links.yaml (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
gallacher authored May 27, 2024
1 parent 9203396 commit 072bca8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/broken-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 072bca8

Please sign in to comment.