Skip to content

Commit d4aa64f

Browse files
Check Daily and create Issue check-broken-links.yml
1 parent 499e36e commit d4aa64f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/check-broken-links.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Daily Broken Link Check
33
on:
44
schedule:
55
- cron: '0 2 * * *' # Every day at 2:00 AM UTC
6-
workflow_dispatch: # Optional: allows manual run
6+
workflow_dispatch:
77

88
jobs:
99
lychee:
@@ -23,18 +23,17 @@ jobs:
2323
--exclude-mail
2424
--no-progress
2525
--exclude ^https?://
26-
--output lychee/out.md
2726
'**/*.md'
27+
output: lychee/out.md # ✅ Set output file here, not in args
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

3131
- name: Create or update GitHub Issue if broken links found
32-
if: failure() # Only runs if Lychee exits with error (broken links found)
32+
if: failure()
3333
uses: peter-evans/create-issue-from-file@v4
3434
with:
3535
title: "🚨 Broken Links Detected"
3636
content-filepath: lychee/out.md
3737
labels: bug, links
38-
assignees: your-github-username # optional: assign to yourself
39-
update-existing: true # ✅ Avoids duplicate issues
40-
issue-pattern: "Broken Links Detected" # Matches existing issue title
38+
update-existing: true
39+
issue-pattern: "Broken Links Detected"

0 commit comments

Comments
 (0)