Skip to content

Commit 4169b46

Browse files
authored
Merge pull request #84 from pp-mo/linkcheck
Added link checker workflow.
2 parents e09fe14 + 44f4c27 commit 4169b46

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Linkcheck
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "00 08 * * 1-5"
7+
8+
jobs:
9+
linkChecker:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write # required for peter-evans/create-issue-from-file
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Link Checker
17+
id: lychee
18+
uses: lycheeverse/lychee-action@v2
19+
with:
20+
fail: false
21+
args:
22+
- "./docs/**/*.rst"
23+
# - "./docs/**/*.inc"
24+
25+
- name: Create Issue From File
26+
if: steps.lychee.outputs.exit_code != 0
27+
uses: peter-evans/create-issue-from-file@v5
28+
with:
29+
title: Link Checker Report
30+
content-filepath: ./lychee/out.md
31+
labels: report, automated issue

0 commit comments

Comments
 (0)