Build API reference and create PR #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |