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)
for (const image of ["debian", "ubuntu"]) {
try {
core.startGroup("Get image name")
await exec.exec("skopeo", [
"inspect",
`docker://docker.io/library/${image}:${tag}`
])
core.endGroup()
return image
} catch {
continue