Skip to content

Update Toolkit docs #243

Update Toolkit docs

Update Toolkit docs #243

name: Update Toolkit docs
on:
schedule:
- cron: "0 0 * * *" # scheduled to run every day at midnight
workflow_dispatch:
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout protocol-contracts repository
uses: actions/checkout@v2
with:
repository: zeta-chain/toolkit
path: toolkit
- name: Update docs
run: |
mkdir -p src/pages/developers/frontend/toolkit
rm -rf src/pages/developers/frontend/toolkit/*
cp -r toolkit/docs/* src/pages/developers/frontend/toolkit/
rm -rf toolkit
- name: Check for changes
id: check-changes
run: |
git add src/pages/developers/frontend/toolkit
git diff --cached --exit-code || echo "::set-output name=changed::true"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "docs: update toolkit docs"
body: |
This PR contains updates to toolkit
from the `zeta-chain/toolkit` repository.
commit-message: |
"docs: update toolkit from zeta-chain/toolkit"
base: main
branch: docs/updates-from-zeta-chain-node
if: steps.check-changes.outputs.changed == 'true'