mirror of
https://github.com/status-im/ift-docs.git
synced 2026-08-30 03:11:14 +00:00
36 lines
762 B
YAML
36 lines
762 B
YAML
name: Link Check
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
paths:
|
|
- '**/*.md'
|
|
- '.github/workflows/link-check.yml'
|
|
|
|
jobs:
|
|
linkChecker:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Restore lychee cache
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: .lycheecache
|
|
key: cache-lychee-${{ github.sha }}
|
|
restore-keys: cache-lychee-
|
|
|
|
- name: Link Checker
|
|
uses: lycheeverse/lychee-action@v2
|
|
with:
|
|
args: >-
|
|
--no-progress
|
|
--verbose
|
|
--include-fragments
|
|
'./**/*.md'
|
|
fail: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|