Skip to content

Commit c27f0c9

Browse files
committed
Add lychee link checker github workflow
1 parent c204b8b commit c27f0c9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/links.yml

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

0 commit comments

Comments
 (0)