-
Notifications
You must be signed in to change notification settings - Fork 61
60 lines (51 loc) · 2 KB
/
update-from-zeta-node.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Update module and OpenAPI specs from zeta-chain/node
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 zeta-chain/node repository
uses: actions/checkout@v2
with:
repository: zeta-chain/node
path: node
- name: Update module docs
run: |
mkdir -p src/pages/architecture/modules
rm -rf src/pages/architecture/modules/*
cp -r node/docs/spec/* src/pages/architecture/modules/
- name: Update zetacored CLI docs
run: |
mkdir -p src/pages/architecture/zetacored
rm -rf src/pages/architecture/zetacored/*
cp -r node/docs/cli/zetacored/* src/pages/architecture/zetacored/
- name: Update OpenAPI specs
run: |
mkdir -p public/data
rm -rf public/data/openapi.swagger.yaml
cp -r node/docs/openapi/openapi.swagger.yaml public/data/
echo -e "\nhost: zetachain-athens.blockpi.network/lcd/v1/public" >> public/data/openapi.swagger.yaml
rm -rf node
- name: Check for changes
id: check-changes
run: |
git add src/pages/architecture/modules
git add public/data/openapi.swagger.yaml
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 module and OpenAPI specs from the node repo"
body: |
This PR contains updates to the Cosmos SDK module and OpenAPI
specifications from the `zeta-chain/node` repository.
commit-message: |
"docs: update module and OpenAPI specs from zeta-chain/node"
base: main
branch: docs/updates-from-zeta-chain-node
if: steps.check-changes.outputs.changed == 'true'