-
Notifications
You must be signed in to change notification settings - Fork 34
44 lines (38 loc) · 1.04 KB
/
main.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
name: Trigger docs re-build
on:
push:
branches:
- 'develop'
jobs:
trigger_docs:
name: Trigger docs re-build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2.4.0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19
- name: Build docs
run: |
npm install
npm run build-docs
- name: Commit and push
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: 'update: docs (runned by GHAction)'
author_email: 'pierre.lepers@gmail.com'
author_name: 'plepers'
branch: 'develop'
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACTIONS_KEY }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'evanmartiin',
repo: 'nanogl-docs',
workflow_id: 'main.yml',
ref: 'main'
})