-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 967 Bytes
/
docs.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
33
34
35
36
37
38
39
40
name: docs
on:
push:
branches:
- main
paths:
- '**.md'
pull_request:
paths:
- '**.md'
workflow_dispatch:
concurrency:
group: docs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# https://github.com/igorshubovych/markdownlint-cli
markdownlint-cli:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nosborn/github-action-markdown-cli@v3.3.0
with:
files: '**/*.md'
config_file: .markdownlint.yaml
dot: true
# https://github.com/errata-ai/vale-action
vale:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@reviewdog
with:
fail_on_error: true
vale_flags: "--glob='**/*.md'"