mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
This also adds the cache file to `.gitignore` in case you run Lychee locally with the same options as CI.
38 lines
959 B
YAML
38 lines
959 B
YAML
name: 🌐 Check URLs
|
|
on:
|
|
schedule:
|
|
# Every Friday at 16:27 UTC.
|
|
# URLs can decay over time. Setting up a schedule makes it possible to be warned
|
|
# about dead links as soon as possible.
|
|
- cron: "27 16 * * FRI"
|
|
|
|
jobs:
|
|
check-urls:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Restore lychee cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: .lycheecache
|
|
key: cache-lychee-${{ github.sha }}
|
|
restore-keys: cache-lychee-
|
|
|
|
- name: Run lychee
|
|
uses: lycheeverse/lychee-action@v2
|
|
with:
|
|
args: >
|
|
--root-dir .
|
|
--no-progress
|
|
--cache
|
|
--max-cache-age 1d
|
|
--exclude-path _build/
|
|
--exclude-path _templates/
|
|
--exclude-path classes/
|
|
"**/*.md" "**/*.rst"
|
|
|
|
- name: Fail if there were link errors
|
|
run: exit ${{ steps.lc.outputs.exit_code }}
|