Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lychee Link Checker
name: Periodic Link Checker

on: [ pull_request ]
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: # Allow manual triggering

jobs:
link-check:
Expand Down Expand Up @@ -28,9 +31,25 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}

- uses: lycheeverse/lychee-action@v1.10.0
- name: Run Lychee Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.10.0
env:
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
with:
fail: true
args: --base https://docs.apify.com --exclude-path 'build/versions.html' --max-retries 6 --verbose --no-progress --accept '100..=103,200..=299,403..=403, 429' './build/**/*.html'
fail: false
args: >
--base https://docs.apify.com
--exclude-path 'build/versions.html'
--max-retries 6
--verbose
--no-progress
--accept '100..=103,200..=299,403..=403,429'
--output ./lychee/out.md
--format markdown
'./build/**/*.html'
continue-on-error: true

- name: Add job summary
if: always()
run: cat ./lychee/out.md >> $GITHUB_STEP_SUMMARY