@@ -168,6 +168,35 @@ jobs:
168168 core.warning(`Unsupported event type: ${context.eventName}`);
169169 return null;
170170
171+ - name : Debug - Show lychee config being used
172+ if : |
173+ steps.pr-context.outputs.pr_closed != 'true' &&
174+ ((github.event_name == 'pull_request' &&
175+ github.event.pull_request.head.repo.fork == true &&
176+ steps.fork-docs-check.outputs.any_changed == 'true') ||
177+ (github.event_name == 'deployment_status' &&
178+ steps.changed-files.outputs.any_changed == 'true') ||
179+ github.event_name == 'workflow_dispatch')
180+ run : |
181+ echo "=== Lychee Configuration Debug ==="
182+ echo "Working directory: $(pwd)"
183+ echo "Git HEAD commit: $(git rev-parse HEAD)"
184+ echo "Git branch: $(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo 'detached HEAD')"
185+ echo ""
186+ if [ -f "lychee.toml" ]; then
187+ echo "✓ lychee.toml found in working directory"
188+ echo "Last modified by commit: $(git log -1 --format='%H %ai %s' -- lychee.toml)"
189+ echo ""
190+ echo "=== Current verbosity setting ==="
191+ grep "^verbose = " lychee.toml || echo "No verbose setting found"
192+ echo ""
193+ echo "=== Last 5 exclude patterns ==="
194+ grep -A 25 "^exclude = " lychee.toml | tail -6
195+ else
196+ echo "✗ lychee.toml not found in working directory!"
197+ fi
198+ echo "=================================="
199+
171200 - name : Link Checker
172201 id : lychee
173202 # Run if:
@@ -195,6 +224,7 @@ jobs:
195224 # Same-repo PRs: Wait for deployment and use preview URL
196225 # Fork PRs: Run immediately and check against production (no preview available)
197226 args : >-
227+ --config lychee.toml
198228 --base-url ${{ steps.pr-context.outputs.deploy_url || 'https://docs.wandb.ai' }}
199229 ${{ steps.fork-docs-check.outputs.all_changed_files || steps.changed-files.outputs.all_changed_files || '.' }}
200230
0 commit comments