Do not serialize custom job parameter
parent
b1c3214d79
commit
daa844d053
|
|
@ -3639,7 +3639,9 @@ class LocalDockerCloudRunner {
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
|
||||||
|
set -e
|
||||||
|
${commands}`, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, {
|
||||||
|
|
@ -4770,7 +4772,7 @@ class TaskParameterSerializer {
|
||||||
static readBuildParameterFromEnvironment() {
|
static readBuildParameterFromEnvironment() {
|
||||||
const buildParameters = new build_parameters_1.default();
|
const buildParameters = new build_parameters_1.default();
|
||||||
const keys = [
|
const keys = [
|
||||||
...new Set(Object.keys(process.env)
|
...new Set(Object.getOwnPropertyNames(process.env)
|
||||||
.filter((x) => !this.blocked.has(x) && x.startsWith('GAMECI_'))
|
.filter((x) => !this.blocked.has(x) && x.startsWith('GAMECI_'))
|
||||||
.map((x) => TaskParameterSerializer.UndoEnvVarFormat(x))),
|
.map((x) => TaskParameterSerializer.UndoEnvVarFormat(x))),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -87,9 +87,15 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
|
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
writeFileSync(
|
||||||
flag: 'w',
|
`${workspace}/${entrypointFilePath}`,
|
||||||
});
|
`#!/bin/bash
|
||||||
|
set -e
|
||||||
|
${commands}`,
|
||||||
|
{
|
||||||
|
flag: 'w',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
await Docker.run(
|
await Docker.run(
|
||||||
image,
|
image,
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ export class TaskParameterSerializer {
|
||||||
const buildParameters = new BuildParameters();
|
const buildParameters = new BuildParameters();
|
||||||
const keys = [
|
const keys = [
|
||||||
...new Set(
|
...new Set(
|
||||||
Object.keys(process.env)
|
Object.getOwnPropertyNames(process.env)
|
||||||
.filter((x) => !this.blocked.has(x) && x.startsWith('GAMECI_'))
|
.filter((x) => !this.blocked.has(x) && x.startsWith('GAMECI_'))
|
||||||
.map((x) => TaskParameterSerializer.UndoEnvVarFormat(x)),
|
.map((x) => TaskParameterSerializer.UndoEnvVarFormat(x)),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue