Skip to content

Merge pull request #37 from evanmartiin/develop #2

Merge pull request #37 from evanmartiin/develop

Merge pull request #37 from evanmartiin/develop #2

Workflow file for this run

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/[email protected]
- 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: '[email protected]'
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'
})