forked from l2beat/l2beat
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.25 KB
/
updateL2DataFull.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
name: FULL Update L2 data into JSON files
on:
workflow_dispatch:
schedule:
# RUNS EVERY WEEK
- cron: "0 3 * * 0"
jobs:
updateL2Data:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build:dependencies
- name: Fetch and save L2s data
run: cd packages/config && pnpm install && pnpm layer2-details-full
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
delete-branch: true
author: Data parser bot <[email protected]>
commit-message: "chore[layer2]: Update data full"
title: "chore[layer2]: Update data full"
body: |
- Update layer2 data
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: automerge
branch: update-layer2-parsed-data-full