pull/310/head
Frostebite 2021-12-30 21:28:57 +00:00
parent 9708808254
commit 3102287676
4 changed files with 9 additions and 16 deletions

10
dist/index.js vendored
View File

@ -2567,12 +2567,7 @@ class TaskParameterSerializer {
static readBuildParameters(array) {
const keys = Object.keys(cloud_runner_state_1.CloudRunnerState.buildParams);
for (const element of keys) {
array.push(
//{
// name: element,
// value: `${CloudRunnerState.buildParams[element]}`,
//},
{
array.push({
name: element,
value: cloud_runner_state_1.CloudRunnerState.buildParams[element],
});
@ -2586,7 +2581,8 @@ class TaskParameterSerializer {
static readInput(array) {
const input = Object.getOwnPropertyNames(__1.Input);
for (const element of input) {
if (typeof __1.Input[element] !== 'function') {
if (typeof __1.Input[element] !== 'function' &&
array.filter((x) => x.name === element).length === 0) {
array.push(
//{
// name: element,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -34,6 +34,8 @@ describe('Cloud Runner', () => {
const newLinePurgedFile = file
.replace(/\s+/g, '')
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
// eslint-disable-next-line no-console
console.log(JSON.stringify(environmentVariables, undefined, 4));
for (const element of environmentVariables) {
if (element.value !== undefined && typeof element.value !== 'function') {
if (typeof element.value === `string`) {

View File

@ -39,16 +39,11 @@ export class TaskParameterSerializer {
private static readBuildParameters(array: any[]) {
const keys = Object.keys(CloudRunnerState.buildParams);
for (const element of keys) {
array.push(
//{
// name: element,
// value: `${CloudRunnerState.buildParams[element]}`,
//},
{
if (array.filter((x) => x.name === element).length === 0)
array.push({
name: element,
value: CloudRunnerState.buildParams[element],
},
);
});
}
array.push(
{ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) },