Skip to content

Commit ba310e9

Browse files
Add link checker GH Action
1 parent c0621aa commit ba310e9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/links.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# action: https://github.com/lycheeverse/lychee-action
2+
# lychee: https://github.com/lycheeverse/lychee
3+
4+
name: Links
5+
6+
on:
7+
pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
#first of every month
11+
- cron: "0 0 1 * *"
12+
13+
jobs:
14+
linkChecker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Link Checker
20+
id: lychee
21+
uses: lycheeverse/lychee-action@v1
22+
23+
- name: Create Issue From File
24+
if: ${{ failure() && github.event_name != 'pull_request' }}
25+
uses: peter-evans/create-issue-from-file@v5
26+
with:
27+
title: Link Checker Report
28+
content-filepath: ./lychee/out.md
29+
labels: report, automated issue

0 commit comments

Comments
 (0)