fix: improve link-check workflow with User-Agent and accept codes #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: link-check | ||
| on: | ||
| push: | ||
| pull_request: | ||
| jobs: | ||
| check-links: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Check links | ||
| uses: lycheeverse/lychee-action@v2.0.2 | ||
| with: | ||
| args: --verbose --no-progress --header "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" --accept "200,203,301,302,403,401,429" './**/*.md' | ||
| fail: true | ||