Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ChainName type for wallet network data #13497

Merged
merged 18 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/update-chains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update Chains

on:
schedule:
- cron: '20 16 * * FRI' # Runs every Friday at 16:20 UTC
workflow_dispatch: # Can be dispatched manually

jobs:
update-chains:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: yarn install

- name: Install ts-node
run: yarn global add ts-node

- name: Update chains data
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/update-chains.ts

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-chains
branch-suffix: timestamp
commit-message: |
Update chains data
base: dev
title: Update chains data
body: Automated update of chains data from https://chainid.network/chains.json
labels: update 🔄
Comment on lines +30 to +41
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loading
Loading