forked from UniversalRobots/Universal_Robots_ROS2_Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.07 KB
/
Copy pathcheck_links.yml
File metadata and controls
40 lines (39 loc) · 1.07 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
name: Check Links
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
check_links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Restore lychee cache
id: restore-cache
uses: actions/cache/restore@v6
with:
path: .lycheecache
key: cache-lychee-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: cache-lychee-
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: true
args: >
--verbose
--no-progress
--cache
--cache-exclude-status 429
--max-cache-age 2d
--exclude '^http://192\.168\.56\.101'
--max-concurrency 1
'./**/*.md' './**/*.html' './**/*.rst' './**/*.cpp' './**/*.h' './**/*.py'
- name: Save lychee cache
uses: actions/cache/save@v6
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}