Skip to content

Commit b411cc5

Browse files
committed
check_links: Use lychee instead of custom script
1 parent e9f580f commit b411cc5

File tree

3 files changed

+19
-73
lines changed

3 files changed

+19
-73
lines changed

.github/helpers/check_urls.sh

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/check_links.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Check URLs
15-
run: |
16-
.github/helpers/check_urls.sh \
17-
-d ".git build CMakeModules debian" \
18-
-f "package.xml ursim_docker.rst architecture_coarse.svg" \
19-
-p "vnc\.html opensource\.org\/licenses\/BSD-3-Clause"
14+
- name: Restore lychee cache
15+
uses: actions/cache@v4
16+
with:
17+
path: .lycheecache
18+
key: cache-lychee
19+
restore-keys: cache-lychee
20+
- name: Link Checker
21+
id: lychee
22+
uses: lycheeverse/lychee-action@v2
23+
with:
24+
fail: true
25+
args: >
26+
--verbose
27+
--no-progress
28+
--cache
29+
--cache-exclude-status 429
30+
--max-cache-age 2d
31+
'./**/*.md' './**/*.html' './**/*.rst' './**/*.cpp' './**/*.h' './**/*.py'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ docs_output
1212
docs_build
1313
cross_reference
1414
ur_robot_driver/doc/generated
15+
.lycheecache

0 commit comments

Comments
 (0)