Skip to content

Add self-guard to precompile hook for HMR reliability #1587

Add self-guard to precompile hook for HMR reliability

Add self-guard to precompile hook for HMR reliability #1587

name: Check Markdown Links
on:
push:
branches: [master]
paths:
- '**.md'
- '.github/workflows/check-markdown-links.yml'
- '.lychee.toml'
pull_request:
paths:
- '**.md'
- '.github/workflows/check-markdown-links.yml'
- '.lychee.toml'
schedule:
# Run daily at 3am UTC to catch stale cached links
# See: https://lychee.cli.rs/github_action_recipes/caching/
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Check markdown links
uses: lycheeverse/lychee-action@v2
with:
args: --config .lychee.toml docs/ *.md react_on_rails_pro/docs/ react_on_rails_pro/*.md
fail: true