Skip to content

Commit

Permalink
Fix logic to check if update command is used or not
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkma committed Apr 26, 2024
1 parent 167848d commit 4e5e99a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azurecontainerapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ export class azurecontainerapps {
}

const environmentVariables: string = this.toolHelper.getInput('environmentVariables', false);
const isCappUpdateCommandUsed: boolean = this.noIngressUpdate || (!this.noIngressUpdate && this.adminCredentialsProvided)
const isCappUpdateCommandUsed: boolean = this.containerAppExists && (!this.shouldCreateOrUpdateContainerAppWithUp && (!this.adminCredentialsProvided || this.noIngressUpdate))
// Add user-specified environment variables
if (!this.util.isNullOrEmpty(environmentVariables)) {
// The --replace-env-vars flag is only used for the 'update' command,
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ var azurecontainerapps = /** @class */ (function () {
}
}
var environmentVariables = this.toolHelper.getInput('environmentVariables', false);
var isCappUpdateCommandUsed = this.noIngressUpdate || (!this.noIngressUpdate && this.adminCredentialsProvided);
var isCappUpdateCommandUsed = this.containerAppExists && (!this.shouldCreateOrUpdateContainerAppWithUp && (!this.adminCredentialsProvided || this.noIngressUpdate));
// Add user-specified environment variables
if (!this.util.isNullOrEmpty(environmentVariables)) {
// The --replace-env-vars flag is only used for the 'update' command,
Expand Down

0 comments on commit 4e5e99a

Please sign in to comment.