Do not serialize custom job parameter

pull/461/head
Frostebite 2022-09-28 00:51:10 +01:00
parent a297d26ece
commit 747f85d217
4 changed files with 3 additions and 14 deletions

8
dist/index.js vendored
View File

@ -50,12 +50,6 @@ function runMain() {
yield cli_1.Cli.RunCli(); yield cli_1.Cli.RunCli();
return; return;
} }
}
catch (error) {
process.exitCode = 1;
throw error;
}
try {
model_1.Action.checkCompatibility(); model_1.Action.checkCompatibility();
model_1.Cache.verify(); model_1.Cache.verify();
const { workspace, actionFolder } = model_1.Action; const { workspace, actionFolder } = model_1.Action;
@ -4795,7 +4789,7 @@ class TaskParameterSerializer {
return cloud_runner_options_1.default.ToEnvVarFormat(input); return cloud_runner_options_1.default.ToEnvVarFormat(input);
} }
static UndoEnvVarFormat(element) { static UndoEnvVarFormat(element) {
return this.camelize(element.replace('GAMECI_', '').replace(/_+/g, '').toLowerCase()); return this.camelize(element.replace('GAMECI_', '').toLowerCase().replace(/_+/g, ' '));
} }
static camelize(string) { static camelize(string) {
return string return string

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -10,11 +10,6 @@ async function runMain() {
return; return;
} }
} catch (error) {
process.exitCode = 1;
throw error;
}
try {
Action.checkCompatibility(); Action.checkCompatibility();
Cache.verify(); Cache.verify();

View File

@ -116,7 +116,7 @@ export class TaskParameterSerializer {
} }
public static UndoEnvVarFormat(element): string { public static UndoEnvVarFormat(element): string {
return this.camelize(element.replace('GAMECI_', '').replace(/_+/g, '').toLowerCase()); return this.camelize(element.replace('GAMECI_', '').toLowerCase().replace(/_+/g, ' '));
} }
private static camelize(string) { private static camelize(string) {