-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.03 KB
/
lychee.yml
File metadata and controls
47 lines (40 loc) · 1.03 KB
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
name: Link check
on:
schedule:
# Mondays 06:00 UTC
- cron: "0 6 * * 1"
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
lychee:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- name: Run Lychee
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: >-
--no-progress
--accept 200,204,206,301,302,308,403,429
--exclude-mail
--exclude-path dist/_astro
--exclude-path dist/pagefind
--max-concurrency 8
'./dist/**/*.html'
fail: false
- name: File issue from report
if: env.lychee_exit_code != '0'
uses: peter-evans/create-issue-from-file@v5
with:
title: "Link check report ${{ github.run_id }}"
content-filepath: ./lychee/out.md
labels: docs, link-check