-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
39 lines (33 loc) · 966 Bytes
/
regen-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
name: Regen Docs
on:
workflow_dispatch:
pull_request:
types: [ closed ]
branches: [ master ]
paths: [ 'apidoc/**' ]
jobs:
regen:
if: github.repository_owner == 'tidev' && (github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
name: Trigger Regen
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
if: steps.node-cache.outputs.cache-hit != 'true'
- run: npm run lint:docs
name: Lint
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
event-type: regen-api-docs
token: ${{ secrets.REGEN_DOCS_GITHUB_TOKEN }}
repository: tidev/titanium-docs