From 4c0a8f426feda48e759eeeb1c73e0d61d27d56b9 Mon Sep 17 00:00:00 2001 From: Mikhailo Shabodyash Date: Mon, 26 Aug 2024 19:07:39 +0300 Subject: [PATCH] fix: fix to workflow --- .github/workflows/enact-migration.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/enact-migration.yaml b/.github/workflows/enact-migration.yaml index 4792878dc..fa9beada6 100644 --- a/.github/workflows/enact-migration.yaml +++ b/.github/workflows/enact-migration.yaml @@ -119,7 +119,6 @@ jobs: GOV_NETWORK: ${{ env.GOV_NETWORK }} REMOTE_ACCOUNTS: ${{ fromJSON('["", "true"]')[github.event.inputs.eth_pk == ''] }} if: github.event.inputs.impersonateAccount == '' - - name: Run Enact Migration (impersonate) 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'] }} ${{ github.event.inputs.migration }} --impersonate ${{ github.event.inputs.impersonateAccount }} @@ -139,7 +138,6 @@ jobs: git add deployments/${{ github.event.inputs.network }}/${{ github.event.inputs.deployment }}/migrations/${{ github.event.inputs.migration }}.ts git commit -m "Modified migration from GitHub Actions" || echo "No changes to commit" git push origin - - name: Run Prepare and Enact Migration (impersonate) run: | yarn hardhat migrate --network ${{ github.event.inputs.network }} --deployment ${{ github.event.inputs.deployment }} --prepare --enact --overwrite ${{ fromJSON('["", "--simulate"]')[github.event.inputs.simulate == 'true'] }} ${{ fromJSON('["", "--no-enacted"]')[github.event.inputs.no_enacted == 'true'] }} ${{ github.event.inputs.migration }} --impersonate ${{ github.event.inputs.impersonateAccount }} @@ -150,12 +148,4 @@ jobs: GOV_NETWORK_PROVIDER: ${{ fromJSON('["", "http://localhost:8685"]')[github.event.inputs.eth_pk == '' && env.GOV_NETWORK != ''] }} GOV_NETWORK: ${{ env.GOV_NETWORK }} REMOTE_ACCOUNTS: ${{ fromJSON('["", "true"]')[github.event.inputs.eth_pk == ''] }} - if: github.event.inputs.impersonateAccount != '' && github.event.inputs.simulate == 'true' && github.event.inputs.run_id == '0' - - name: Commit changes - if: ${{ github.event.inputs.simulate == 'false' }} - run: | - git config user.name "GitHub Actions Bot" - git config user.email "<>" - git add deployments/${{ github.event.inputs.network }}/${{ github.event.inputs.deployment }}/migrations/${{ github.event.inputs.migration }}.ts - git commit -m "Modified migration from GitHub Actions" || echo "No changes to commit" - git push origin \ No newline at end of file + if: github.event.inputs.impersonateAccount != '' && github.event.inputs.simulate == 'true' && github.event.inputs.run_id == '0' \ No newline at end of file