1
0
mirror of synced 2025-12-30 03:01:36 -05:00

cache external link checking to disk file (#32082)

This commit is contained in:
Peter Bengtsson
2022-11-10 14:38:08 +01:00
committed by GitHub
parent 4aff99e80f
commit 46fbab792e
5 changed files with 136 additions and 307 deletions

View File

@@ -54,6 +54,12 @@ jobs:
if: ${{ github.repository == 'github/docs-internal' }}
run: .github/actions-scripts/merge-early-access.sh
- name: Restore disk-cache file for external link checking
uses: actions/cache@48af2dc4a9e8278b89d7fa154b955c30c6aaab09
with:
path: external-link-checker-db.json
key: external-link-checker-${{ hashFiles('.github/actions/rendered-content-link-checker.js') }}
- name: Run link checker
env:
LEVEL: 'critical'
@@ -67,6 +73,10 @@ jobs:
CREATE_REPORT: true
CHECK_EXTERNAL_LINKS: true
PATIENT: true
# This means that we'll *re-check* external URLs once a week.
# But mind you that the number has a 10% chance of "jitter"
# to avoid a stampeding herd when they all expire some day.
EXTERNAL_LINK_CHECKER_MAX_AGE_DAYS: 7
timeout-minutes: 30
run: node .github/actions/rendered-content-link-checker.js