-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (45 loc) · 1.25 KB
/
lychee.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: "✅ Lychee"
on:
repository_dispatch:
workflow_dispatch:
workflow_call:
schedule:
- cron: "00 18 * * *"
push:
branches: [main]
paths:
- "public/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "📤 Restore cache"
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: "📊 Lychee Link Checker"
id: lychee
uses: lycheeverse/lychee-action@2ac9f030ccdea0033e2510a23a67da2a2da98492
with:
args: "--config './github/lychee.toml' './public/arf.json'"
format: markdown
output: ./docs/LINKS_REPORT.md
fail: false
jobSummary: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "🔖 Create Issue From File"
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./docs/LINKS_REPORT.md
issue-number: 49
labels: report, automated issue