diff --git a/.github/workflows/lychee.yml b/.github/workflows/lychee.yml index e5d2192a07..45c6299858 100644 --- a/.github/workflows/lychee.yml +++ b/.github/workflows/lychee.yml @@ -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: @@ -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