lychee link Checker cronjob #1540
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: lychee link Checker cronjob | |
| on: | |
| repository_dispatch: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "00 18 * * *" | |
| jobs: | |
| linkChecker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 12.x | |
| - name: Install prerequisites | |
| run: | | |
| npm install | |
| - name: Link Checker | |
| uses: lycheeverse/lychee-action@v1.0.8 | |
| with: | |
| args: --verbose --no-progress --exclude-all-private **/*.md | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |