-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.06 KB
/
links.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
name: Check Broken Links
on:
# repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 11 * * 2,5" # HKT 7PM Tuesday/Friday
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: site
- name: Restore Lychee Cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
# TODO: --include-fragments (v0.16?)
- name: Check Links
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --base https://trebledj.github.io --timeout 60 --no-progress --accept '200,201,202,203,204,403,429' --include-verbatim --exclude-mail --exclude-path _site/404.html --cache --max-cache-age 3d _site
- 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: ./lychee/out.md
labels: report, automated issue