-
Notifications
You must be signed in to change notification settings - Fork 294
86 lines (70 loc) · 2.66 KB
/
generate_all_files.yml
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
on: [workflow_dispatch]
name: Generate All Files
jobs:
generate_zone_config:
name: Generate All Files
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- name: Git Sumbodule Update
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19.6.0
- name: Install dependencies
run: npm install
- name: Run code to Query Pools
working-directory: ./.github/workflows/utility
run: node queryPools.mjs
- name: Run code to Generate Assetlist
working-directory: ./.github/workflows/utility
run: node generate_assetlist.mjs
- name: Run code to Generate Chainlist New
working-directory: ./.github/workflows/utility
run: node generate_chainlist_new.mjs
- name: Run code to Generate Chainlist
working-directory: ./.github/workflows/utility
run: node generate_chainlist.mjs
- name: Run code to Update State
working-directory: ./.github/workflows/utility
run: node update_assetlist_state.mjs
- name: Run code to Generate Zone Assets Comments
working-directory: ./.github/workflows/utility
run: node generateComments.mjs
- name: Run localization
working-directory: ./.github/workflows/utility
run: npx pnpm inlang machine translate --force
- name: Run post-localization code
working-directory: ./.github/workflows/utility
run: node localization_post.mjs
- name: Add Commit Push
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: false
commit_prefix: "[AUTO]"
commit_message: "assetlist and chainlist Update"
force: false
target_branch: update/assetlist_all
- name: Create A PR
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: update/assetlist_all
target_branch: main
title: assetlist and chainlist Update
body: "**Automated pull request**"
old_string: "**THIS IS AN AUTOMATED UPDATE OF ASSETLIST.JSON AND CHAINLIST.JSON**"
new_string: "** Automatic pull request**"
get_diff: true
ignore_users: "dependabot"