Skip to content

Bump lycheeverse/lychee-action from 2.8.0 to 2.9.0 #492

Bump lycheeverse/lychee-action from 2.8.0 to 2.9.0

Bump lycheeverse/lychee-action from 2.8.0 to 2.9.0 #492

Workflow file for this run

name: Check Markdown files correctness
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
# Extract links from Markdown texts and check if they are alive
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Restore lychee cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
args: -a 200..=204,403,429 --no-progress --cache --max-cache-age 1d --scheme http --scheme https --root-dir "${{ github.workspace }}/content" --remap "file://${{ github.workspace }}/content/languages/ file://${{ github.workspace }}/static/languages/" './**/*.md' './layouts/shortcodes/fuzzing/*.html'
fail: true
# Lint Markdown files
# Uses: a custom configuration file
markdown-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19
with:
globs: "**/*.md"
# Spellcheck Markdown files using `retext` and `remark`
# Uses: a custom dictionary file
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: tbroadley/spellchecker-cli-action@8369e98753c0d2c3a3c76fb4519d9056d1d4b129 # v1
with:
# No need to use a dictionary file with the disabled spell plugin
# dictionaries: '.github/workflows/dictionary.txt'
files: "'content/**/*.md'"
quiet: true
plugins: "indefinite-article repeated-words syntax-mentions syntax-urls"