-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (32 loc) · 1.03 KB
/
markdown-link-check.yml
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
---
name: Check Markdown links
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches: [main]
jobs:
markdown-link-check-on-pull-request:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/**.md
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: yes
config-file: .md-link-check.json
if: env.GIT_DIFF
markdown-link-check-on-push-or-workflow_dispatch:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: .markdown-link-check.json