-
Notifications
You must be signed in to change notification settings - Fork 26
48 lines (43 loc) · 1.08 KB
/
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
41
42
43
44
45
46
47
48
name: docs
on:
push:
branches: ["main"]
paths:
- '**/*.md'
- '**/*.png'
- '**/*.gitignore'
- '.vscode/**'
- '.excalidraw-ignore'
pull_request:
branches: ["main"]
# Must stay in sync with the paths in .github/workflows/build.yml and .github/mergify.yml
paths:
- '**/*.md'
- '**/*.png'
- '**/*.gitignore'
- '.vscode/**'
- '.excalidraw-ignore'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: markdownlint-cli2-action
uses: DavidAnson/markdownlint-cli2-action@v14
with:
globs: '**/*.md'
png-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: PNG Lint
run: make png-lint
docs-workflow-complete:
needs: ["markdown-lint", "png-lint"]
runs-on: ubuntu-latest
steps:
- name: Docs Workflow Complete
run: echo "Docs Workflow Complete"