Skip to content

Merge pull request #9 from projectdiscovery/add-automatic-js-docs #1

Merge pull request #9 from projectdiscovery/add-automatic-js-docs

Merge pull request #9 from projectdiscovery/add-automatic-js-docs #1

name: Build JS Protocol Docs
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node Environment
uses: actions/[email protected]
- name: Install jsdoc-to-markdown
run: npm install -g jsdoc-to-markdown
- name: Build JS Proto Docs
run: ./jsdocs.sh
- name: Commit results to Github
run: |
git pull
git config --local user.email "[email protected]"
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 }}