Skip to content

Check Markdown links #3

Check Markdown links

Check Markdown links #3

name: Check Markdown links
on:
# triggered on PR
# pull_request: {}
# manual trigger
workflow_dispatch: {}
jobs:
# job for .md
check-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
# run for .md
file-extension: '.md'
# only returns errors
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
#location for config (different config to filter out .mdx
config-file: '.github/workflows/check_broken_link_md_config.json'
# folders to check parse
folder-path: 'pages/docs, pages/changelogs, pages/guides'
# depth from folder path
max-depth: -1
# only check files changed in the PR
# check-modified-files-only: 'yes'
# branch to compare for diff
#base-branch: 'main'
# job for .mdx
check-mdx-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
file-extension: '.mdx'
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
#location for config (different config to filter out .md
config-file: '.github/workflows/check_broken_link_mdx_config.json'
folder-path: 'pages/docs, pages/changelogs, pages/guides'
max-depth: -1
# only check files changed in the PR
# check-modified-files-only: 'yes'
# branch to compare for diff
#base-branch: 'main'