Injective list - Generate data #10480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
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: 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" |