-
Notifications
You must be signed in to change notification settings - Fork 68
37 lines (34 loc) · 995 Bytes
/
markdown.yaml
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
name: Markdown checker
on:
pull_request
jobs:
links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: '.github/workflows/config/markdown-links.json'
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get changed files
uses: tj-actions/changed-files@v35
id: changed-files
with:
files: '**/*.md'
separator: ","
- uses: DavidAnson/markdownlint-cli2-action@v9
if: steps.changed-files.outputs.any_changed == 'true'
with:
command: config
globs: |
.github/workflows/config/.markdownlint.jsonc,
${{ steps.changed-files.outputs.all_changed_files }}
separator: ","