Skip to content

Commit 094d243

Browse files
nikw3fNikhil Ranjan
and
Nikhil Ranjan
authored
Broken link checker (#1977)
Co-authored-by: Nikhil Ranjan <[email protected]>
1 parent d0e15f6 commit 094d243

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Broken Links
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 0 1 * *' # Trigger the workflow every month
8+
9+
jobs:
10+
build_and_check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Link Checker
16+
id: lychee
17+
uses: lycheeverse/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
with:
21+
args: --verbose --no-progress !./applications/*
22+
23+
- name: Create Issue From File
24+
if: env.lychee_exit_code != 0
25+
uses: peter-evans/create-issue-from-file@v4
26+
with:
27+
title: Link Checker Report
28+
content-filepath: ./lychee/out.md
29+
labels: report, automated issue

0 commit comments

Comments
 (0)