Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Jul 11, 2024
1 parent 5977a78 commit 6dea8b8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions js-action/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@ async function main() {
}

// latest
console.log(`latest: ${latest}`);
console.log(typeof latest);

let resultLatest = latest;
if ('latest' in image) {
resultLatest = image.latest;
}
if (resultLatest === 'true') {
resultLatest = true;
} else {
resultLatest = false;
}
console.log(`resultLatest: ${resultLatest}`);
console.log(typeof resultLatest);

Expand Down Expand Up @@ -169,7 +171,10 @@ async function main() {
imagesCommands.push(commands);
}

console.log(JSON.stringify(imagesCommands, null, 2));
if (core.isDebug()) {
console.log(`### imagesCommands struct: ###`);
console.log(JSON.stringify(imagesCommands, null, 2));
}

// Build images
if (operation == 'build' || operation == 'build-and-push') {
Expand Down

0 comments on commit 6dea8b8

Please sign in to comment.