Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 34 additions & 3 deletions .github/workflows/docs-auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This workflows, run daily, updates the Forest CLI usage docs, and submits a PR with the changes.
name: Update Forest usage docs
# This workflow, run daily, updates the Forest CLI usage docs and the Forest RPC reference docs,
# and submits a separate PR for each.
name: Update Forest docs
permissions:
contents: read

Expand All @@ -9,7 +10,7 @@ on:
- cron: "0 0 * * *"

jobs:
update-docs:
update-cli-docs:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -37,3 +38,33 @@ jobs:
body: |
### Changes
- Updates Forest CLI docs to the latest commit in the `main` branch.

update-rpc-docs:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- name: Generate OpenRPC specifications
run: |
cd docs/scripts
./generate-openrpc-specs.sh docker
# This is needed in order to have the commits signed.
- uses: actions/create-github-app-token@v3
id: generate-token
with:
app-id: ${{ secrets.LESHY_APP_ID }}
private-key: ${{ secrets.LESHY_APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
base: main
branch: leshy/update-forest-rpc-docs
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update Forest RPC reference docs
sign-commits: true
title: "[automated] Update Forest RPC reference docs"
add-paths: |
docs/openrpc-specs/
body: |
### Changes
- Updates Forest RPC reference docs to the latest commit in the `main` branch.
- Regenerates OpenRPC specifications (v0, v1, v2) from latest Forest code.
40 changes: 0 additions & 40 deletions .github/workflows/docs-rpc-auto-update.yml

This file was deleted.

Loading