File tree Expand file tree Collapse file tree 6 files changed +1849
-3
lines changed Expand file tree Collapse file tree 6 files changed +1849
-3
lines changed Original file line number Diff line number Diff line change
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 🔄
You can’t perform that action at this time.
0 commit comments