Skip to content

.github/workflows/upgrade.yml #6

.github/workflows/upgrade.yml

.github/workflows/upgrade.yml #6

Workflow file for this run

on:
workflow_dispatch:
inputs:
network:
description: 'Network'
required: true
default: 'hardhat'
type: choice
options:
- hardhat
- bellecour
jobs:
upgrade:
runs-on: ubuntu-latest
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"
if [ "$NETWORK" == 'hardhat' ]; then
export IS_LOCAL_FORK=true
echo "IS_LOCAL_FORK: $IS_LOCAL_FORK"
fi
npm run upgrade
env:
NETWORK: ${{ inputs.network }}