Skip to content

Commit fe02965

Browse files
authored
Merge pull request #559 from crazy-max/outputs
Enhance outputs display
2 parents 7f9d37f + 5af8693 commit fe02965

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

dist/index.js

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,21 @@ async function run(): Promise<void> {
3333
}
3434
});
3535

36-
await core.group(`Setting outputs`, async () => {
37-
const imageID = await buildx.getImageID();
38-
const metadata = await buildx.getMetadata();
39-
if (imageID) {
40-
core.info(`digest=${imageID}`);
36+
const imageID = await buildx.getImageID();
37+
if (imageID) {
38+
await core.group(`Digest output`, async () => {
39+
core.info(imageID);
4140
context.setOutput('digest', imageID);
42-
}
43-
if (metadata) {
44-
core.info(`metadata=${metadata}`);
41+
});
42+
}
43+
44+
const metadata = await buildx.getMetadata();
45+
if (metadata) {
46+
await core.group(`Metadata output`, async () => {
47+
core.info(metadata);
4548
context.setOutput('metadata', metadata);
46-
}
47-
});
49+
});
50+
}
4851
} catch (error) {
4952
core.setFailed(error.message);
5053
}

0 commit comments

Comments
 (0)