-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (59 loc) · 1.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
name: "✅ Lychee"
on:
repository_dispatch: {}
workflow_dispatch: {}
workflow_call: {}
schedule:
- cron: "00 18 * * *"
push:
branches: [main]
paths:
- "**.md"
- "**.mdx"
- "**.html"
pull_request_target:
branches: [main]
paths:
- "**.md"
- "**.mdx"
- "**.html"
jobs:
links-check:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3.3.0
- name: "📤 Restore cache"
id: restore-cache
uses: actions/cache/restore@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: "📊 Lychee Link Checker"
uses: lycheeverse/lychee-action@c3089c702fbb949e3f7a8122be0c33c017904f9b
with:
args: "--config ./.github/lychee.toml './**/*.md*' './**/*.html'"
format: markdown
output: ./.github/LINKS_REPORT.md
fail: false
jobSummary: true
env:
GITHUB_TOKEN: ${{ github.token }}
- name: "📥 Save cache"
uses: actions/cache/save@v3
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- 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: ./.github/LINKS_REPORT.md
labels: maintenance 📈
issue-number: 102