Skip to content

Commit

Permalink
Allowing white-space characters in environment variables (#14) (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalajmsft authored Jan 6, 2020
1 parent 5dad25e commit 2c2c8b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
let gitHubEnvironmentVariables = '';
for (let key in process.env) {
if (key.toUpperCase().startsWith("GITHUB_") && key.toUpperCase() !== 'GITHUB_WORKSPACE' && process.env[key]) {
gitHubEnvironmentVariables += ` -e ${key}=${process.env[key]} `;
gitHubEnvironmentVariables += ` -e "${key}=${process.env[key]}" `;
}
}
/*
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const run = async () => {
let gitHubEnvironmentVariables = '';
for (let key in process.env){
if (key.toUpperCase().startsWith("GITHUB_") && key.toUpperCase() !== 'GITHUB_WORKSPACE' && process.env[key]){
gitHubEnvironmentVariables += ` -e ${key}=${process.env[key]} `;
gitHubEnvironmentVariables += ` -e "${key}=${process.env[key]}" `;
}
}
/*
Expand Down

0 comments on commit 2c2c8b0

Please sign in to comment.