-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.22 KB
/
link-check.yml
File metadata and controls
43 lines (38 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Link Check
on:
pull_request:
paths:
- 'content/**'
- '**.md'
- '**.mdx'
schedule:
# Run weekly on Monday at 00:00 UTC
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
link-check:
name: Check Links
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Check links in content directory
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
config-file: '.github/markdown-link-check-config.json'
folder-path: 'content/'
check-modified-files-only: ${{ github.event_name == 'pull_request' && 'yes' || 'no' }}
base-branch: 'main'
- name: Check links in root markdown files
uses: gaurav-nelson/github-action-markdown-link-check@1.0.17
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
config-file: '.github/markdown-link-check-config.json'
file-path: './README.md'
check-modified-files-only: ${{ github.event_name == 'pull_request' && 'yes' || 'no' }}
base-branch: 'main'