Cherry pick try-catch block to output results if build is failing (#90)
parent
e1be8325cd
commit
2656f4e108
File diff suppressed because one or more lines are too long
|
@ -16,6 +16,7 @@ async function action() {
|
|||
} = Input.getFromUser();
|
||||
const baseImage = ImageTag.createForBase({ version: unityVersion, customImage });
|
||||
|
||||
try {
|
||||
// Build docker image
|
||||
const actionImage = await Docker.build({ path: actionFolder, dockerfile, baseImage });
|
||||
|
||||
|
@ -29,9 +30,10 @@ async function action() {
|
|||
useHostNetwork,
|
||||
customParameters,
|
||||
});
|
||||
|
||||
} finally {
|
||||
// Set output
|
||||
await Output.setArtifactsPath(artifactsPath);
|
||||
}
|
||||
}
|
||||
|
||||
action().catch(error => {
|
||||
|
|
Loading…
Reference in New Issue