-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 919 Bytes
/
root.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
name: root
on: pull_request_target
jobs:
files-changed:
name: Detect File Changes
runs-on: ubuntu-latest
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@v4
- uses: dorny/[email protected]
id: filter
with:
filters: |
docs:
- '.github/workflows/**/*'
- '**/*.md'
- '.vuepress/*'
- 'package.json'
markdown:
if: needs.files-changed.outputs.docs == 'true'
name: Lint Markdown Files
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install && npm run remark
docs:
if: needs.files-changed.outputs.docs == 'true'
name: Build Docs
needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install && npm run docs:build