Skip to content

trigger-api-docs-pr #247

trigger-api-docs-pr

trigger-api-docs-pr #247

name: Update API docs
on:
workflow_dispatch:
repository_dispatch:
types: [trigger-api-docs-pr]
jobs:
create-api-docs-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
persist-credentials: false
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Update Bee-js
run: git submodule update --remote --merge
- name: Create PR
uses: gr2m/create-or-update-pull-request-action@v1
env:
GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }}
with:
title: "feat: new bee-js api docs"
body: "Updated Bee-js API references"
branch: "feat/new-bee-js-api-docs"
commit-message: "feat: new bee-js api docs"
author: "bee-worker <[email protected]>"