-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (51 loc) · 1.41 KB
/
vp-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
49
50
51
52
53
54
55
56
57
58
59
name: "Docs Hub Check"
on:
workflow_call:
inputs:
doc-folder-path:
description: "the folder path where the markdown files live"
required: true
type: string
spellcheck-config-path:
description: "the path where the .spellcheck.yml file lives"
required: true
type: string
node-version:
description: "Node version"
default: 20
type: string
required: false
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: rojopolis/[email protected]
name: Spellcheck
with:
config_path: ${{ inputs.spellcheck-config-path }}
task_name: SPCheck
check-doc-folders:
name: Check Configs & Folders
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout repo2
uses: actions/checkout@v4
with:
repository: 'FuelLabs/github-actions'
path: 'workflow'
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Run script
run: |
pnpm install
pnpm build
cd workflow/docs-hub
node vp-docs.js ${{ inputs.doc-folder-path }}