Split lychee args to multi-lines #2
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 on push + PR | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| lychee: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6.0.2 | |
| - name: Check links | |
| uses: lycheeverse/lychee-action@v2.8.0 | |
| with: | |
| # Check all markdown files, but ignore local fragments and common anti-bot/rate-limited endpoints | |
| args: > | |
| "*.md" "**/*.md" | |
| --verbose --no-progress | |
| --accept 200..299,300..399,403,429 | |
| --exclude "ghostbrowser\.com" --exclude api\.star-history\.com | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |