Skip to content

Commit edc3c65

Browse files
committed
Allowing white-space characters in environment variables (#14)
1 parent 5dad25e commit edc3c65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
5050
let gitHubEnvironmentVariables = '';
5151
for (let key in process.env) {
5252
if (key.toUpperCase().startsWith("GITHUB_") && key.toUpperCase() !== 'GITHUB_WORKSPACE' && process.env[key]) {
53-
gitHubEnvironmentVariables += ` -e ${key}=${process.env[key]} `;
53+
gitHubEnvironmentVariables += ` -e "${key}=${process.env[key]}" `;
5454
}
5555
}
5656
/*

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const run = async () => {
3838
let gitHubEnvironmentVariables = '';
3939
for (let key in process.env){
4040
if (key.toUpperCase().startsWith("GITHUB_") && key.toUpperCase() !== 'GITHUB_WORKSPACE' && process.env[key]){
41-
gitHubEnvironmentVariables += ` -e ${key}=${process.env[key]} `;
41+
gitHubEnvironmentVariables += ` -e "${key}=${process.env[key]}" `;
4242
}
4343
}
4444
/*

0 commit comments

Comments
 (0)