Checker #23
This file contains 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: Checker | |
on: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
linkChecker: | |
name: Link Checker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check Links | |
id: lychee | |
uses: lycheeverse/[email protected] | |
with: | |
args: --verbose --max-concurrency 32 --timeout 120 --no-progress *.md | |
- name: Create Issue From File | |
if: ${{ steps.lychee.outputs.exit_code != 0 }} | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue | |
- name: Fail if there were link errors | |
if: ${{ steps.lychee.outputs.exit_code != 0 }} | |
run: exit ${{ steps.lychee.outputs.exit_code }} |