| 1 |
--- |
| 2 |
name: Check links |
| 3 |
|
| 4 |
on: |
| 5 |
pull_request: |
| 6 |
|
| 7 |
jobs: |
| 8 |
markdown-link-check: |
| 9 |
name: Check links using markdown-link-check |
| 10 |
runs-on: ubuntu-latest |
| 11 |
|
| 12 |
steps: |
| 13 |
|
| 14 |
- name: Checkout code |
| 15 |
uses: actions/checkout@v4 |
| 16 |
with: |
| 17 |
|
| 18 |
ref: ${{ github.event.pull_request.head.sha }} |
| 19 |
|
| 20 |
fetch-depth: 0 |
| 21 |
|
| 22 |
- name: Check links on new changes |
| 23 |
uses: gaurav-nelson/github-action-markdown-link-check@v1 |
| 24 |
with: |
| 25 |
config-file: ".github/linters/mlc_config.json" |
| 26 |
check-modified-files-only: "yes" |
| 27 |
use-quiet-mode: "yes" |
| 28 |
use-verbose-mode: "yes" |
| 29 |
base-branch: "main" |