-
Notifications
You must be signed in to change notification settings - Fork 868
45 lines (37 loc) · 1.33 KB
/
evm_squid.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
name: EVM Squid Merge
on:
workflow_dispatch:
jobs:
create-pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Run code modification script
run: |
node _script/evm_squid.js arbitrum 42161
node _script/evm_squid.js avalanche 43114
node _script/evm_squid.js base 8453
node _script/evm_squid.js bnb-smart-chain 56
node _script/evm_squid.js ethereum 1
node _script/evm_squid.js optimism 10
node _script/evm_squid.js polygon 137
- name: Create dynamic branch name
id: vars
run: |
BRANCH_NAME="update-assets-$(date +%Y%m%d%H%M%S)"
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Automated code modification"
branch: ${{ steps.vars.outputs.branch_name }}
title: "Automated PR: Weekly evm assets modification"
body: "arbitrum / avalanche / base"
draft: false
delete-branch: true # PR 병합 후 브랜치 삭제