forked from ClickHouse/clickhouse-go
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 921 Bytes
/
check-pr-links.yml
File metadata and controls
32 lines (28 loc) · 921 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
name: check PR Links
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Check links
uses: lycheeverse/lychee-action@v2
with:
# Remap live URLs to build directory because the links are potentially not live (not yet on master)
args: |
--verbose
--no-progress
--exclude-all-private
--retry-wait-time 5
./
fail: true
- name: Suggestions
if: failure()
run: |
echo -e "\nPlease review the links reported in the 'Check links' step above."
echo -e "If a link is valid but fails due to a CAPTCHA challenge, IP blocking, login requirements, etc.,"
echo -e "consider adding such links to .lycheeignore file to bypass future checks.\n"
exit 1