Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghua1 committed Nov 15, 2024
1 parent bfcd3d7 commit 8ecd923
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/azd/cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ func (u *upAction) Run(ctx context.Context) (*actions.ActionResult, error) {

envValue := u.flags.EnvFlag.EnvironmentName
for _, step := range upWorkflow.Steps {
stepArgs := append(step.AzdCommand.Args, "-e", envValue)
step.AzdCommand.Args = stepArgs
if envValue != "" {
stepArgs := append(step.AzdCommand.Args, "-e", envValue)
step.AzdCommand.Args = stepArgs
}
}

if err := u.workflowRunner.Run(ctx, upWorkflow); err != nil {
Expand Down

0 comments on commit 8ecd923

Please sign in to comment.