Skip to content

Build API reference and create PR #7

Build API reference and create PR

Build API reference and create PR #7

name: Build API reference and create PR
on:
workflow_dispatch:
inputs:
branch:
description: 'The branch of the golem-js repository that should have API reference generated'
required: true
default: 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Generate documentation
run: ./generate-reference.sh ${{ github.event.inputs.branch }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'feat: Update golem-js API Reference for branch ${{ github.event.inputs.branch }}'
title: 'feat: Update golem-js API Reference for branch ${{ github.event.inputs.branch }}'
branch: patch/golem-js-api-reference-${{ github.event.inputs.branch }}
reviewers: cryptobench
base: ${{ github.event.inputs.branch }}
delete-branch: true