main: wrap in group

This commit is contained in:
Dawid Dziurla 2022-10-27 10:11:20 +02:00 committed by GitHub
parent aa962d1346
commit b755e71a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,10 +19,12 @@ async function getImageName(distribution) {
const tag = getImageTag("", distribution) const tag = getImageTag("", distribution)
for (const image of ["debian", "ubuntu"]) { for (const image of ["debian", "ubuntu"]) {
try { try {
core.startGroup("Get image name")
await exec.exec("skopeo", [ await exec.exec("skopeo", [
"inspect", "inspect",
`docker://docker.io/library/${image}:${tag}` `docker://docker.io/library/${image}:${tag}`
]) ])
core.endGroup()
return image return image
} catch { } catch {
continue continue