pull/524/head
Frostebite 2023-03-17 17:29:23 +00:00
parent 32f85ee17c
commit 962eaf51cb
3 changed files with 9 additions and 3 deletions

5
dist/index.js generated vendored
View File

@ -5599,7 +5599,10 @@ class TaskParameterSerializer {
static async exportAllCiVariablesWithoutPrefix() {
for (const variable of Object.entries(process.env)) {
if (variable[0].includes(`CI_`)) {
process.env[variable[0].replace(`CI_`, ``)] = `${variable[1] || ``}`;
const name = variable[0].replace(`CI_`, ``);
const value = `${variable[1] || ``}`;
process.env[name] = value;
await cloud_runner_system_1.CloudRunnerSystem.Run(`export ${name}="${value}"`);
}
}
await cloud_runner_system_1.CloudRunnerSystem.Run(`printenv`);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -158,7 +158,10 @@ export class TaskParameterSerializer {
public static async exportAllCiVariablesWithoutPrefix() {
for (const variable of Object.entries(process.env)) {
if (variable[0].includes(`CI_`)) {
process.env[variable[0].replace(`CI_`, ``)] = `${variable[1] || ``}`;
const name = variable[0].replace(`CI_`, ``);
const value = `${variable[1] || ``}`;
process.env[name] = value;
await CloudRunnerSystem.Run(`export ${name}="${value}"`);
}
}
await CloudRunnerSystem.Run(`printenv`);