Skip to content

Bump lycheeverse/lychee-action from 2.4.1 to 2.5.0 (#4377) #71

Bump lycheeverse/lychee-action from 2.4.1 to 2.5.0 (#4377)

Bump lycheeverse/lychee-action from 2.4.1 to 2.5.0 (#4377) #71

name: validate-documentation
on:
push:
branches: [ main ]
paths:
- '.github/workflows/validate-documentation.yml'
- '**.md'
- '.lycheeignore'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/validate-documentation.yml'
- '**.md'
- '.lycheeignore'
merge_group:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2
- name: Restore lychee cache
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
id: cache-restore
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run markdown links checks
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release PR') }}
uses: lycheeverse/lychee-action@5c4ee84814c983aa7164eaee476f014e53ff3963 # tag: v2.5.0
with:
fail: true
args: "--cache --max-cache-age 1d --threads 1 --max-concurrency 1 --verbose --retry-wait-time 5 --max-retries 3 --timeout 60 --no-progress './**/*.md' './**/*.html'"
- name: Run markdownlint
uses: streetsidesoftware/cspell-action@dcd03dc3e8a59ec2e360d0c62db517baa0b4bb6d # tag: v7.2.0
with:
files: '**/*.md'
- name: Run cspell
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # tag: v20.0.0
- name: Save lychee cache
if: always()
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: .lycheecache
key: ${{ steps.cache-restore.outputs.cache-primary-key }}