Skip to content

Commit 8b4f673

Browse files
authored
Merge pull request #13497 from ethereum/wallet-network-schema
Add ChainName type for wallet network data
2 parents 1435763 + 973d645 commit 8b4f673

File tree

6 files changed

+1849
-3
lines changed

6 files changed

+1849
-3
lines changed

.github/workflows/update-chains.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Chains
2+
3+
on:
4+
schedule:
5+
- cron: '20 16 * * FRI' # Runs every Friday at 16:20 UTC
6+
workflow_dispatch: # Can be dispatched manually
7+
8+
jobs:
9+
update-chains:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20'
20+
21+
- name: Install dependencies
22+
run: yarn install
23+
24+
- name: Install ts-node
25+
run: yarn global add ts-node
26+
27+
- name: Update chains data
28+
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/update-chains.ts
29+
30+
- name: Create Pull Request
31+
uses: peter-evans/create-pull-request@v6
32+
with:
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
branch: update-chains
35+
branch-suffix: timestamp
36+
commit-message: |
37+
Update chains data
38+
base: dev
39+
title: Update chains data
40+
body: Automated update of chains data from https://chainid.network/chains.json
41+
labels: update 🔄

0 commit comments

Comments
 (0)