Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f73d35d5
Unverified
Commit
f73d35d5
authored
Aug 20, 2025
by
Yan Ru Pei
Committed by
GitHub
Aug 20, 2025
Browse files
test: lychee offline in pre-merge CI (full check only on push to main) (#2549)
parent
526b02f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
.github/workflows/docs-link-check.yml
.github/workflows/docs-link-check.yml
+13
-2
No files found.
.github/workflows/docs-link-check.yml
View file @
f73d35d5
...
@@ -50,13 +50,24 @@ jobs:
...
@@ -50,13 +50,24 @@ jobs:
# Set GITHUB_TOKEN to avoid github rate limits on URL checks
# Set GITHUB_TOKEN to avoid github rate limits on URL checks
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
run
:
|
cd docs
set -euo pipefail
set -euo pipefail
# Set offline mode for pull requests, full check for pushes to main
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "Running lychee in offline mode (internal links only) for PR check"
OFFLINE_FLAG="--offline"
else
echo "Running lychee in full mode (all links) for main branch"
OFFLINE_FLAG=""
fi
# Run lychee against all files in repo
# Run lychee against all files in repo
lychee \
lychee \
--cache \
--cache \
--no-progress \
--no-progress \
--exclude-path "ATTRIBUTIONS.*" \
--root-dir "${{ github.workspace }}" \
--exclude-path ".*ATTRIBUTIONS.*" \
--accept "200..=299, 403, 429" \
--accept "200..=299, 403, 429" \
--exclude-all-private --exclude 0.0.0.0 \
--exclude-all-private --exclude 0.0.0.0 \
$OFFLINE_FLAG \
.
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment