Skip to content

Generate Coingecko Universe #28

Generate Coingecko Universe

Generate Coingecko Universe #28

name: Generate Coingecko Universe
on:
workflow_dispatch:
schedule:
# At 00:00 (midnight) every day
- cron: '0 0 * * *'
env:
TOKEN_LISTS_ACTIONS_OR_CI_BUILD: true
API_AUTH_TOKEN_GITHUB: ${{ secrets.API_AUTH_TOKEN_GITHUB }}
ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }}
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
BASE_RPC_URL: ${{ secrets.BASE_RPC_URL }}
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
AVALANCHE_RPC_URL: ${{ secrets.AVALANCHE_RPC_URL }}
SOLANA_RPC_URL: ${{ secrets.SOLANA_RPC_URL }}
jobs:
generate-coingecko-universe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Configure git'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: sudo apt-get update -y
- run: npm install -g yarn
- run: sudo apt-get install -y librsvg2-bin libimagequant-dev pkg-config
- run: yarn --version
- run: yarn
- run: yarn generate-coingecko-universe
- run: git add data
- run: git commit -m "Update Coingecko Universe"
- run: git push