Docs/narrative batch3 #4
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: Docs Link Check | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - '**/*.md' | |
| - '.github/workflows/link-check.yml' | |
| - 'lychee.toml' | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - '.github/workflows/link-check.yml' | |
| - 'lychee.toml' | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: link-check-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lychee: | |
| name: Check links with lychee | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run lychee link checker | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| # Respect config file settings; output summary and fail on broken links | |
| args: >- | |
| --config lychee.toml | |
| --no-progress | |
| --max-redirects 10 | |
| --timeout 20 | |
| --retry-wait-time 2 | |
| --max-retries 2 | |
| --format detailed | |
| --exclude-mail | |
| **/*.md | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload lychee report (always) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lychee-report | |
| path: | | |
| lychee-out.md | |
| lychee-out.txt | |
| lychee-cache* |