10000 Add lychee link checker · mre/rust-gamedev.github.io@cd85aa8 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd85aa8

Browse files
authored
Add lychee link checker
1 parent 16328a2 commit cd85aa8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/links.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Link Check
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "00 09 * * *"
A192 8+
9+
jobs:
10+
linkChecker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Link Checker
16+
id: lychee
17+
uses: lycheeverse/lychee-action@v1.7.0
18+
env:
19+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
21+
- name: Create Issue From File
22+
if: env.lychee_exit_code != 0
23+
uses: peter-evans/create-issue-from-file@v4
24+
with:
25+
title: Link Checker Report
26+
content-filepath: ./lychee/out.md
27+
labels: report, automated issue

0 commit comments

Comments
 (0)
0