Check all links in the repository #2259
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 all links in the repository | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| deployment_status: | |
| workflow_dispatch: | |
| concurrency: | |
| group: link-check-${{ github.event.deployment.id || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| name: Check all links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Restore lychee cache | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 | |
| with: | |
| path: .lycheecache | |
| key: cache-lychee-${{ github.sha }} | |
| restore-keys: cache-lychee- | |
| - name: Run Lychee | |
| uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2 | |
| with: | |
| args: >- | |
| --verbose --no-progress --max-concurrency 8 --retry-wait-time 20 | |
| --cache --max-cache-age 2d --base-url ${{ | |
| github.event.deployment.payload.web_url || 'https://doc.dvc.org' }} | |
| '.github/**/*' 'content/**/*' 'src/**/*' | |
| fail: true | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |