-
Notifications
You must be signed in to change notification settings - Fork 10
80 lines (69 loc) · 2.36 KB
/
master.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
name: Injective list - Generate data
on:
workflow_dispatch:
schedule:
- cron: "*/15 * * * *"
push:
branches:
- master
jobs:
generate:
if: ${{ !contains(github.event.commits[0].message, 'generate json files') }}
name: "Regenerate JSON files"
runs-on: ubuntu-latest
permissions: write-all
env:
## Github Actions
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
CLOUD_FLARE_API_KEY: ${{ secrets.CLOUD_FLARE_API_KEY }}
CLOUD_FLARE_ACCOUNT_ID: ${{ secrets.CLOUD_FLARE_ACCOUNT_ID }}
CLOUD_FLARE_ACCOUNT_HASH: ${{ secrets.CLOUD_FLARE_ACCOUNT_HASH }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
ALCHEMY_GOERLI_KEY: ${{ secrets.ALCHEMY_GOERLI_KEY }}
ALCHEMY_SEPOLIA_KEY: ${{ secrets.ALCHEMY_SEPOLIA_KEY }}
MAINNET_FEE_PAYER: ${{ secrets.MAINNET_FEE_PAYER }}
TESTNET_FEE_PAYER: ${{ secrets.TESTNET_FEE_PAYER }}
DEVNET_FEE_PAYER: ${{ secrets.DEVNET_FEE_PAYER }}
steps:
- uses: actions/checkout@v4
with:
token: "${{ secrets.GH_TOKEN }}"
- run: |
git reset --hard origin/master
- name: Install dependencies
run: cd ts-scripts && yarn
- name: Generate tokens
uses: borales/actions-yarn@v4
with:
cmd: tokens:generate
dir: "ts-scripts"
- name: Generate validators
uses: borales/actions-yarn@v4
with:
cmd: validators:generate
dir: "ts-scripts"
- name: Generate market slugs
uses: borales/actions-yarn@v4
with:
cmd: slugs:generate
dir: "ts-scripts"
- name: Generate wasm messages
uses: borales/actions-yarn@v4
with:
cmd: wasm:generate
dir: "ts-scripts"
- name: Generate verified denoms
uses: borales/actions-yarn@v4
with:
cmd: verifiedDenoms:generate
dir: "ts-scripts"
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: ${{ github.event_name == 'push' && !contains(github.event.commits[0].message, 'skip deploy') }}
with:
message: "chore: generate json files"
- name: Commit changes
uses: EndBug/add-and-commit@v9
if: ${{ github.event_name != 'push' || contains(github.event.commits[0].message, 'skip deploy') }}
with:
message: "chore: generate json files - skip deploy"