forked from waja/action-debian-package
main: wrap in group
This commit is contained in:
parent
aa962d1346
commit
b755e71a2c
2
main.js
2
main.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue