Skip to content

Commit

Permalink
add impersonate_address into github inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-woof-software committed May 21, 2024
1 parent a408f39 commit 1c0424a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/enact-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ on:
description: Run ID for Artifact
eth_pk:
description: Ignore if you plan to use WalletConnect, otherwise, you can paste in a Ethereum private key
impersonate_address:
description: Pass address with enough voting power to run the migration. If the address is not passed, impersonation will not apply
jobs:
enact-migration:
name: Enact Migration
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:

- name: Run Enact Migration
run: |
yarn hardhat migrate --network ${{ github.event.inputs.network }} --deployment ${{ github.event.inputs.deployment }} --enact --overwrite ${{ fromJSON('["", "--simulate"]')[github.event.inputs.simulate == 'true'] }} ${{ fromJSON('["", "--no-enacted"]')[github.event.inputs.no_enacted == 'true'] }} ${{ fromJSON('["", "--imittate " + github.event.inputs.imittate_address]')[github.event.inputs.imittate_address != ''] }} ${{ github.event.inputs.migration }}
yarn hardhat migrate --network ${{ github.event.inputs.network }} --deployment ${{ github.event.inputs.deployment }} --enact --overwrite ${{ fromJSON('["", "--simulate"]')[github.event.inputs.simulate == 'true'] }} ${{ fromJSON('["", "--no-enacted"]')[github.event.inputs.no_enacted == 'true'] }} ${{ fromJSON('["", "--imittate " + github.event.inputs.impersonate_address]')[github.event.inputs.impersonate_address != ''] }} ${{ github.event.inputs.migration }}
env:
DEBUG: true
ETH_PK: "${{ inputs.eth_pk }}"
Expand Down

0 comments on commit 1c0424a

Please sign in to comment.