mirror of
https://github.com/seerr-team/seerr.git
synced 2026-06-02 13:20:22 -04:00
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: Check Docs Links
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
paths:
|
|
- 'docs/**'
|
|
- 'gen-docs/**'
|
|
- '.github/workflows/docs-link-check.yml'
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- 'docs/**'
|
|
- 'gen-docs/**'
|
|
- '.github/workflows/docs-link-check.yml'
|
|
schedule:
|
|
- cron: '50 7 * * 5'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
link-check:
|
|
name: Verify external links in Markdown and MDX
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Run Lychee link checker
|
|
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
|
|
with:
|
|
fail: false
|
|
args: >-
|
|
--verbose
|
|
--no-progress
|
|
--accept 200..204,300..304,307,308,404,429,999
|
|
--exclude '^file://'
|
|
--exclude '^https?://(localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1\]|\[::\])'
|
|
--exclude '^https?://support\.discord\.com'
|
|
'./docs/**/*.md'
|
|
'./docs/**/*.mdx'
|
|
'./gen-docs/**/*.md'
|
|
'./gen-docs/**/*.mdx'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload Lychee report
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: lychee-report
|
|
path: |
|
|
lychee/out.md
|
|
lychee/results.json
|
|
if-no-files-found: ignore
|