cache external link checking to disk file (#32082)
This commit is contained in:
10
.github/workflows/link-check-daily.yml
vendored
10
.github/workflows/link-check-daily.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user