Visitar URL original
ci: switch dead link checker from wget to lychee by BrendanWalsh · Pull Request #2501 · microsoft/SynapseML · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/check-dead-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
- name: Fetch sitemap URLs
run: |
sudo apt-get update
sudo apt-get install -y wget
curl -s https://microsoft.github.io/SynapseML/sitemap.xml \
| grep -oP '<loc>[^<]+</loc>' \
| sed 's/<\/?loc>//g' \
> urls.txt
echo "Found $(wc -l < urls.txt) URLs in sitemap"

- name: Scan for dead links
run: |
wget --spider --recursive --no-verbose --tries=3 --retry-connrefused --no-clobber --directory-prefix=site-check https://microsoft.github.io/SynapseML/
uses: lycheeverse/lychee-action@v2
with:
args: >-
--no-progress
--max-concurrency 8
--max-retries 5
--retry-wait-time 5
--timeout 30
--accept '100..=103,200..=299,503'
urls.txt
Loading