forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.41 KB
/
lychee-cron.yml
File metadata and controls
52 lines (46 loc) · 1.41 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
48
49
50
51
52
name: Check Links In Public Directory
on:
schedule:
- cron: "0 0 1 * *" # Monthly run on the 1st day of every month at midnight UTC
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: dev
- name: Check links in /public
uses: lycheeverse/lychee-action@v2
with:
args: |
public/
--quiet
--max-retries 1
--accept 200,429,403
--exclude-all-private
--exclude '^file://'
--exclude "ethereum\.org"
--include '^https?://'
--format detailed
'./**/*.md'
continue-on-error: true
- name: Provide helpful failure message
if: failure()
run: |
echo "::error::Link check failed! Please review the broken links reported above."
echo ""
echo "If certain links are valid but fail due to:"
echo "- CAPTCHA challenges"
echo "- IP blocking"
echo "- Authentication requirements"
echo "- Rate limiting"
echo ""
echo "Consider adding them to .lycheeignore to bypass future checks."
echo "Format: Add one URL pattern per line"
exit 1