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 bdefe3d commit 7d73c66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions dist/index.js

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

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

await core.group(`Setting outputs`, async () => {
const metadata = await buildx.getMetadata();
if (metadata) {
core.info(`metadata=${metadata}`);
context.setOutput('metadata', metadata);
}
});
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 7d73c66

Please sign in to comment.