Skip to content

Commit 77a4fd3

Browse files
authored
Create check_links.yaml
1 parent b635474 commit 77a4fd3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/check_links.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#https://github.com/lycheeverse/lychee-action
2+
name: 🔎 Check Links 🔗
3+
4+
on:
5+
repository_dispatch:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "15 0 * * 1" #12:15 AM UTC --> 06:00 AM NPT Tue
9+
10+
jobs:
11+
linkChecker:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
path: main
19+
filter: "blob:none"
20+
21+
- name: Link Checker
22+
id: lychee
23+
uses: lycheeverse/lychee-action@v2
24+
with:
25+
fail: false
26+
27+
- name: Create Issue From File
28+
if: steps.lychee.outputs.exit_code != 0
29+
uses: peter-evans/create-issue-from-file@v5
30+
with:
31+
title: Link Checker Report
32+
content-filepath: ./lychee/out.md
33+
labels: report, automated issue

0 commit comments

Comments
 (0)