-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (41 loc) · 1.55 KB
/
generate-coingecko-universe.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
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 libpng-dev
- run: yarn --version
- run: yarn
- run: yarn generate-coingecko-universe
- run: git add data
- run: git commit -m "Update Coingecko Universe"
- run: git push