-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 1.01 KB
/
upgrade.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
on:
workflow_dispatch:
inputs:
network:
description: 'Network'
required: true
default: 'hardhat'
type: choice
options:
- hardhat
- bellecour
jobs:
upgrade:
runs-on: ubuntu-latest
permissions:
contents: write # required by git-auto-commit-action
environment: ${{ inputs.network }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: npm ci
- run: | # TODO: Commit all file changed and create PR
echo "Network: $NETWORK"
echo "IS_LOCAL_FORK: $IS_LOCAL_FORK"
npm run upgrade -- --network $NETWORK
echo "Test" > test.txt
env:
NETWORK: ${{ inputs.network }}
IS_LOCAL_FORK: ${{ inputs.network == 'hardhat'}}
PROD_PRIVATE_KEY: ''
- uses: stefanzweifel/git-auto-commit-action@v5