Skip to content

Commit

Permalink
ci: fetch docs from zeta-node
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jul 6, 2023
1 parent 939bd92 commit 66f3579
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/update-from-zeta-node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update docs/modules from zeta-node

on:
workflow_dispatch:

jobs:
update-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Checkout zeta-node repository
uses: actions/checkout@v2
with:
repository: zeta-chain/protocol-contracts
path: protocol-contracts

- name: Replace contents of docs/modules
run: |
rm -rf docs/data/*
cp -r protocol-contracts/data/* docs/data/
- name: Check for changes
id: check-changes
run: |
git diff --exit-code docs/data/ || echo "::set-output name=changed::true"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: Update docs/modules from zeta-node
commit-message: Update docs/modules from zeta-node
branch: update-docs-modules
if: steps.check-changes.outputs.changed == 'true'

0 comments on commit 66f3579

Please sign in to comment.