Skip to content

Commit

Permalink
Wrap command in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkma committed Jun 14, 2024
1 parent 60da9c6 commit 3716a23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/run-validation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Run validation on action

on:
push:
branches:
- main
paths-ignore:
- '**.md'
# push:
# branches:
# - main
# paths-ignore:
# - '**.md'
pull_request:
branches:
- main
Expand Down Expand Up @@ -585,6 +585,7 @@ jobs:
resourceGroup: ${{ vars.TEST_RESOURCE_GROUP_NAME }}
disableTelemetry: ${{ vars.TEST_DISABLE_TELEMETRY }}


update-using-image-yaml:

name: 'Update app using image with YAML configuration'
Expand Down
2 changes: 1 addition & 1 deletion azurecontainerapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ export class azurecontainerapps {

const command = this.toolHelper.getInput('command', null) as string;
if (!this.shouldCreateOrUpdateContainerAppWithUp && !this.util.isNullOrEmpty(command)) {
this.commandLineArgs.push(`--command ${command}`);
this.commandLineArgs.push(`--command "${command}"`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4519,7 +4519,7 @@ class azurecontainerapps {
}
const command = this.toolHelper.getInput('command', null);
if (!this.shouldCreateOrUpdateContainerAppWithUp && !this.util.isNullOrEmpty(command)) {
this.commandLineArgs.push(`--command ${command}`);
this.commandLineArgs.push(`--command "${command}"`);
}
}
/**
Expand Down

0 comments on commit 3716a23

Please sign in to comment.