Skip to content

Commit 1d8c6e3

Browse files
committed
Add cron and issue creation
1 parent d1965f6 commit 1d8c6e3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- main
10+
schedule:
11+
- cron: '0 0 * * 0' # every Sunday at 00:00
1012

1113
jobs:
1214
linkChecker:
@@ -17,3 +19,15 @@ jobs:
1719
- name: Link Checker
1820
id: lychee
1921
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

0 commit comments

Comments
 (0)