Add CI action to check for broken links

This commit is contained in:
Harvester57
2022-07-31 19:38:43 +02:00
parent 3e8724b52c
commit da285806b3
2 changed files with 45 additions and 0 deletions

27
.github/workflows/links.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Links
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.5.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v3
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue