Skip to content

Commit

Permalink
game-ci#578 Change don't throw errors for missing build results when …
Browse files Browse the repository at this point in the history
…-manualExit is set to true
  • Loading branch information
JohannesDeml committed Oct 8, 2023
1 parent 7280111 commit 64d166d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async function runMain() {
const { workspace, actionFolder } = Action;

const buildParameters = await BuildParameters.create();
const errorWhenMissingUnityBuildResults = !buildParameters.manualExit;
const baseImage = new ImageTag(buildParameters);

if (buildParameters.providerStrategy === 'local') {
Expand All @@ -25,7 +26,16 @@ async function runMain() {
if (process.platform === 'darwin') {
MacBuilder.run(actionFolder);
} else {
await Docker.run(baseImage.toString(), { workspace, actionFolder, ...buildParameters });
await Docker.run(
baseImage.toString(),
{ workspace, actionFolder, ...buildParameters },
undefined,
undefined,
undefined,
undefined,
undefined,
errorWhenMissingUnityBuildResults,
);
}
} else {
await CloudRunner.run(buildParameters, baseImage.toString());
Expand Down

0 comments on commit 64d166d

Please sign in to comment.