-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.06 KB
/
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: push
jobs:
files-changed:
name: Detect File Changes
runs-on: ubuntu-latest
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7
- run: npm install && npm run docs:build