forked from paradedb/paradedb
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 938 Bytes
/
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
36
37
38
39
40
41
# workflows/lint-markdown.yml
#
# Lint Markdown
# Lint Markdown files using Prettier.
name: Lint Markdown
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**/*.md"
- "**/*.mdx"
- ".github/workflows/lint-markdown.yml"
workflow_dispatch:
concurrency:
group: lint-markdown-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-markdown:
name: Lint Markdown Files
runs-on: depot-ubuntu-latest-2
if: github.event.pull_request.draft == false
steps:
- name: Checkout Git Repository
uses: actions/checkout@v4
- name: Set up NodeJS Environment
uses: actions/setup-node@v4
- name: Install Prettier
run: npm install -g prettier markdownlint-cli
- name: Run Markdown Lint
run: markdownlint '**/*.md'
- name: Run Prettier
run: prettier --check '{**/*.md,**/*.mdx}'