forked from dastergon/awesome-sre
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 840 Bytes
/
lychee.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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/[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 }}