forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.17 KB
/
update-chains.yml
File metadata and controls
47 lines (38 loc) · 1.17 KB
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
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: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install ts-node
run: pnpm add -g 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 🔄