forked from novasamatech/nova-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
169 lines (142 loc) · 4.75 KB
/
update_network_list.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: Update project metadata
on:
push:
branches:
- master
workflow_dispatch:
permissions:
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
outputs:
chains: ${{ steps.chains.outputs.any_changed }}
dapps: ${{ steps.dapps.outputs.any_changed }}
chains_dev: ${{ steps.chains_dev.outputs.any_changed }}
xcm: ${{ steps.xcm_chains.outputs.any_changed }}
steps:
- name: Checkout current repository to Master branch
uses: actions/checkout@v1
- name: Set up actual paths
uses: ./.github/workflows/setup-path
- name: Was chains.json changed?
id: chains
uses: tj-actions/[email protected]
with:
files: |
${{ env.CHAINS_JSON_PATH }}
- name: Was dapps.json changed?
id: dapps
uses: tj-actions/[email protected]
with:
files: |
dapps/dapps.json
- name: Was chains_dev changed?
id: chains_dev
uses: tj-actions/[email protected]
with:
files: |
${{ env.DEV_CHAINS_JSON_PATH }}
- name: Was xcm list changed?
id: xcm_chains
uses: tj-actions/[email protected]
with:
files: |
${{ env.XCM_JSON_PATH }}
${{ env.DEV_XCM_JSON_PATH }}
chains_update:
runs-on: ubuntu-latest
needs: check
if: always() && (needs.check.outputs.chains == 'true')
steps:
- name: Checkout current repository to Master branch
uses: actions/checkout@v1
- name: Set up actual paths
uses: ./.github/workflows/setup-path
- name: Install dependencies
run: make init
- name: Generate README file
run: make generate_network_list
- name: Make Pull Request
uses: ./.github/workflows/make-pull-request
with:
commit-files: ./chains/README.md
commit-message: Update networks list
app-id: ${{ secrets.PR_APP_ID}}
app-token: ${{ secrets.PR_APP_TOKEN}}
branch-name: update-networks-readme
pr-title: Update network list
pr-body: Update networks list in https://github.com/novasamatech/nova-utils/tree/master/chains
pr-base: master
dapps_update:
runs-on: ubuntu-latest
needs: check
if: always() && (needs.check.outputs.dapps == 'true')
steps:
- name: Checkout current repository to Master branch
uses: actions/checkout@v1
- name: Set up actual paths
uses: ./.github/workflows/setup-path
- name: Install dependencies
run: make init
- name: Generate new Dapps list file
run: make generate_dapp_list
- name: Make Pull Request
uses: ./.github/workflows/make-pull-request
with:
commit-files: ./dapps/README.md
commit-message: Update dapps list
app-id: ${{ secrets.PR_APP_ID}}
app-token: ${{ secrets.PR_APP_TOKEN}}
branch-name: update-dapps-readme
pr-title: Update Dapps list
pr-body: Update dapps list in https://github.com/novasamatech/nova-utils/tree/master/dapps
pr-base: master
test_json_update:
runs-on: ubuntu-latest
needs: check
if: always() && (needs.check.outputs.chains_dev == 'true')
steps:
- name: Checkout current repository to Master branch
uses: actions/checkout@v1
- name: Set up actual paths
uses: ./.github/workflows/setup-path
- name: Install dependencies
run: make init
- name: Generate new Test data file
run: make generate_test_file
- name: Make Pull Request
uses: ./.github/workflows/make-pull-request
with:
commit-files: ./tests/chains_for_testBalance.json
commit-message: Update test data file
app-id: ${{ secrets.PR_APP_ID}}
app-token: ${{ secrets.PR_APP_TOKEN}}
branch-name: update-test-file
pr-title: Update Test data File
pr-body: Update test data file ./tests/chains_for_testBalance.json
pr-base: master
xcm_table_update:
runs-on: ubuntu-latest
needs: check
if: always() && (needs.check.outputs.xcm == 'true')
steps:
- name: Checkout current repository
uses: actions/checkout@v1
- name: Checkout support repo
uses: actions/checkout@v1
with:
path: ./support
repository: nova-wallet/support-utils
ref: master
token: ${{ secrets.PAT_TOKEN }}
- name: Set up actual paths
uses: ./.github/workflows/setup-path
- uses: actions/setup-python@v4
with:
python-version: '3.9.15'
- name: Generate google table
run: |
cd ../support
make install
make generate-google-table