-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (56 loc) · 1.6 KB
/
markdownlint.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
'on':
workflow_call:
inputs:
config_file:
default: .markdownlint-cli2.yaml
description: The configuration file to use.
required: false
type: string
fix:
default: false
description: If set to true, fix any issues found.
required: false
type: boolean
globs:
default: '**/*.md'
description: The glob to use to find all markdown files.
required: false
type: string
jobs_run_on:
default: ubuntu-latest
description: The runner group on which jobs will run.
required: false
type: string
separator:
default: ','
description: The character used to separate globs.
required: false
type: string
timeout_minutes:
description: The maximum time (in minutes) for a job to run.
default: 5
required: false
type: number
working_directory:
description: The working directory where all jobs should be executed.
default: '.'
required: false
type: string
jobs:
markdown-lint:
defaults:
run:
working-directory: ${{ inputs.working_directory }}
runs-on: ${{ inputs.jobs_run_on }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Lint Markdown files
uses: 'DavidAnson/markdownlint-cli2-action@v15'
with:
config: ${{ inputs.config_file }}
fix: ${{ inputs.fix }}
globs: ${{ inputs.globs }}
separator: ${{ inputs.separator }}
timeout-minutes: ${{ inputs.timeout_minutes }}