Skip to content

chore: generate json files - skip deploy #32675

chore: generate json files - skip deploy

chore: generate json files - skip deploy #32675

Workflow file for this run

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"