-
-
Notifications
You must be signed in to change notification settings - Fork 54
31 lines (31 loc) · 905 Bytes
/
linkcheck.yml
File metadata and controls
31 lines (31 loc) · 905 Bytes
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
name: Link Checker (lychee)
on:
schedule:
# UTC 23:00 is early morning in Australia (9am)
- cron: '0 23 * * 1'
workflow_dispatch:
jobs:
link-checking:
name: Link Checking
runs-on: "ubuntu-latest"
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
# Checkout the live site (html)
- name: Checkout
uses: actions/checkout@v6
with:
ref: gh-pages
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: false
args: --accept 200,403,503 *.html
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v6
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue, linkchecker