Skip to content

Commit

Permalink
Merge pull request #122 from dastergon/add-link-checker
Browse files Browse the repository at this point in the history
Add link checker action
  • Loading branch information
dastergon authored Oct 8, 2022
2 parents 193dde4 + edfc2c1 commit 1da6355
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lychee-Checker

on:
schedule:
- cron: "0 0 1 * *"

jobs:
linkChecker:
name: Lychee Link Checker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Check Links
id: lychee
uses: lycheeverse/lychee-action@v1.5.1
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 }}

0 comments on commit 1da6355

Please sign in to comment.