-
-
Notifications
You must be signed in to change notification settings - Fork 29
42 lines (37 loc) Β· 951 Bytes
/
Copy pathlinks.yml
File metadata and controls
42 lines (37 loc) Β· 951 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
32
33
34
35
36
37
38
39
40
41
42
name: Links
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 6 * * 1" # Mondays 06:00 UTC
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check links
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: >-
--no-progress
--max-concurrency 4
--timeout 30
--max-retries 3
--retry-wait-time 2
--accept '200..=299,403,429'
'./**/*.md'
output: ./lychee/out.md
fail: true
- name: Open an issue on scheduled failure
if: failure() && github.event_name == 'schedule'
uses: peter-evans/create-issue-from-file@v5
with:
title: Broken links detected
content-filepath: ./lychee/out.md
labels: broken-links