2023-02-23 14:08:40 +00:00
|
|
|
name: Check Markdown links
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
2023-08-22 09:51:18 +00:00
|
|
|
markdown_link_check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Node.js
|
2023-11-03 15:06:34 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-08-22 09:51:18 +00:00
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
cache: 'npm'
|
|
|
|
|
|
|
|
- name: Install markdown-link-check
|
2023-09-05 04:19:12 +00:00
|
|
|
run: npm install -g markdown-link-check@3.11.2
|
2023-08-22 09:51:18 +00:00
|
|
|
|
|
|
|
- name: Run markdown-link-check
|
|
|
|
run: |
|
|
|
|
find ./docs -path ./docs/internal-developers/testing/releases -prune -o -name "*.md" -print0 | xargs -0 -n1 markdown-link-check -c .github/workflows/check-doc-links-config.json
|
|
|
|
|