forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.31 KB
/
lint_markdown.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
name: Lint Markdown files
on:
pull_request:
paths:
- ".github/workflows/lint_markdown.yml"
- "**.md"
- "**.mdx"
jobs:
lint-grammar:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Vale
uses: errata-ai/vale-action@v2
with:
vale_flags: "--glob=!{website/pages/blog/podcast-software-engineer-daily.md,*CHANGELOG.md,*/docs/tables/README.md,plugins/source/test/docs/tables/*.md,.github/styles/proselint/README.md,**/v1-migration.md,website/pages/docs/plugins/sources/*/tables.md,website/pages/docs/plugins/sources/*/policies.md,website/tables/**/*,website/pages/case-studies/*.mdx}"
filter_mode: nofilter
fail_on_error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
lint-structure:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: markdownlint-cli
uses: nosborn/github-action-markdown-cli@v3.3.0
with:
files: .
config_file: .markdownlint.yaml
ignore_files: '{website/pages/blog/podcast-software-engineer-daily.md,**/CHANGELOG.md,**/docs/tables/README.md,plugins/source/test/docs/tables/*.md,website/pages/docs/reference/cli/**,website/tables/**/*}'