Skip to content

Commit 4a56496

Browse files
authored
Merge pull request #448 from NLeSC/394-add-lichee
394 add lichee markdown link checker
2 parents 9414253 + 1d8c6e3 commit 4a56496

File tree

3 files changed

+26
-35
lines changed

3 files changed

+26
-35
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: ".github/workflows"
5+
schedule:
6+
interval: "daily"

.github/workflows/markdown-link-check.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,27 @@ on:
77
pull_request:
88
branches:
99
- main
10+
schedule:
11+
- cron: '0 0 * * 0' # every Sunday at 00:00
1012

1113
jobs:
12-
13-
markdown-link-check:
14-
name: Check markdown links
14+
linkChecker:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
19-
with:
20-
use-quiet-mode: 'yes'
21-
config-file: '.mlc-config.json'
17+
- uses: actions/checkout@v4
18+
19+
- name: Link Checker
20+
id: lychee
21+
uses: lycheeverse/lychee-action@v1
22+
with:
23+
# fail action if there are broken links
24+
fail: true
25+
26+
- name: Create Issue From File
27+
# create issues only when triggered by schedule
28+
if: github.event_name == 'schedule' && env.lychee_exit_code != 0
29+
uses: peter-evans/create-issue-from-file@v4
30+
with:
31+
title: Link Checker Report
32+
content-filepath: ./lychee/out.md
33+
labels: report, automated issue

.mlc-config.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)