* Update markdown-link-check to ignore external links causing 403 in CI * Apply wildcards on ignored links * Bump version of mlc to latest to gain --ignore-links arg * Do not warn on redirects from markdown-link-check action * Do not warn on redirects from markdown-link-check action * Update comment
20 lines
724 B
YAML
20 lines
724 B
YAML
name: Check Markdown links
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
markdown-link-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@main
|
|
|
|
- name: Markup Link Checker (mlc)
|
|
uses: becheran/mlc@v0.21.0
|
|
with:
|
|
# Ignore external links that result in 403 errors during CI. Do not warn for redirects where we want to keep the vanity URL in the markdown or for GitHub links that redirect to the login.
|
|
args: --ignore-links "https://www.anthropic.com/*,https://hackerone.com/anthropic-vdp/*" --do-not-warn-for-redirect-to "https://modelcontextprotocol.io/*,https://github.com/login?*" ./
|