-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
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' |