Skip to content

Build JS Proto Modules Docs #59

Build JS Proto Modules Docs

Build JS Proto Modules Docs #59

name: Build JS Proto Modules Docs
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node Environment
uses: actions/setup-node@v4.0.0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Build JS Proto Docs
run: ./generate.sh
working-directory: static/docsbuilder
- name: Commit results to Github
run: |
git pull
git config --local user.email "brendan@projectdiscovery.io"
git config --local user.name "olearycrew"
git commit -m "Update JS Protocol Docs (from GH Actions)" -a --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}