layers, docs, ci: Modular layer restructure, doc split, link checks #10
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: | |
| schedule: | |
| - cron: '0 3 * * 1' | |
| pull_request: | |
| paths: | |
| - '**/*.md' | |
| workflow_dispatch: {} | |
| jobs: | |
| lychee: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run lychee link checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v1 | |
| with: | |
| args: >- | |
| --config .lychee.toml | |
| --verbose | |
| --no-progress | |
| . | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Annotate report | |
| if: always() | |
| run: | | |
| echo 'Lychee exit code: $?' | |
| - name: Fail on broken links | |
| if: steps.lychee.outcome == 'failure' | |
| run: exit 1 |