.github/workflows/upgrade.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |