Skip to content

Commit 8c0c77d

Browse files
Remove check of environment in deployments job
Right now we only support `goerli` network and we expect that the workflow (when triggered manually) is always dispatched with this `environment`. Previously we introduced `github.event.inputs.environment == 'goerli'` condition to not run the deploy job if workflow gets accidentally run on a different environment. But even without this condition we don't risk publishing of a package with some invalid contracts - deploy will fail either due to unsupported `environment` or due to incorrect account being used. Actually, returning error instead of cleanly exiting the workflow may be a better idea in case wrong `environment` is provided - this will alarm the scheduler that something went wrong with the deployment.
1 parent 0002541 commit 8c0c77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/contracts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999

100100
contracts-deployment-testnet:
101101
needs: [contracts-build-and-test]
102-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'goerli'
102+
if: github.event_name == 'workflow_dispatch'
103103
runs-on: ubuntu-latest
104104
steps:
105105
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)