Skip to content

Commit

Permalink
Enhance outputs display
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Feb 8, 2022
1 parent 7f9d37f commit 5fc4627
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
24 changes: 12 additions & 12 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions src/main.ts
Expand Up @@ -33,18 +33,19 @@ async function run(): Promise<void> {
}
});

await core.group(`Setting outputs`, async () => {
const imageID = await buildx.getImageID();
const metadata = await buildx.getMetadata();
if (imageID) {
core.info(`digest=${imageID}`);
context.setOutput('digest', imageID);
}
if (metadata) {
core.info(`metadata=${metadata}`);
context.setOutput('metadata', metadata);
}
});
const imageID = await buildx.getImageID();
if (imageID) {
await core.group(`Digest output`, async () => {
core.info(imageID);
});
}

const metadata = await buildx.getMetadata();
if (metadata) {
await core.group(`Metadata output`, async () => {
core.info(metadata);
});
}
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 5fc4627

Please sign in to comment.