Skip to content

Commit 8da5f09

Browse files
committed
docs: add lychee tool
1 parent 7203fcf commit 8da5f09

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/links-check.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Link Checker
2+
3+
on:
4+
repository_dispatch:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "00 18 * * 6"
11+
12+
jobs:
13+
linkChecker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Link Checker
19+
id: lychee
20+
uses: lycheeverse/lychee-action@v2
21+
env:
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
with:
24+
args: --verbose --no-progress --max-redirects 3 './**/*.md'
25+
format: markdown
26+
fail: false
27+
output: lychee/results.md
28+
29+
- name: Create Issue From File
30+
if: steps.lychee.outputs.exit_code != 0
31+
uses: peter-evans/create-issue-from-file@v5
32+
with:
33+
title: Link Checker Report
34+
content-filepath: ./lychee/results.md
35+
labels: report, automated issue

0 commit comments

Comments
 (0)