readability, fixes #84
Workflow file for this run
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: Check Links In Pull Requests | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - "**/*.md" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-links: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check links | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: | | |
| --no-progress | |
| --include-fragments | |
| --verbose | |
| . | |
| - name: Provide helpful failure message | |
| if: failure() | |
| run: | | |
| echo "::error::Link check failed! Please review the broken links reported above." | |
| echo "" | |
| echo "If certain links are valid but fail due to:" | |
| echo "- CAPTCHA challenges" | |
| echo "- IP blocking" | |
| echo "- Authentication requirements" | |
| echo "- Rate limiting" | |
| echo "" | |
| echo "Consider adding them to .lycheeignore to bypass future checks." | |
| echo "Format: Add one URL pattern per line" | |
| exit 1 |