Skip to content

Commit

Permalink
Merge pull request #1 from GameWorkstore/master
Browse files Browse the repository at this point in the history
Fix running on self-hosted runners
  • Loading branch information
kuler90 authored Apr 2, 2021
2 parents f14d6bc + 2aa7058 commit acb85a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function installUnityModules(unityHubPath, unityVersion, unityModules, uni
const modulesArgs = unityModules.map(s => `--module ${s.toLowerCase()}`).join(' ');
const childModulesArg = unityModulesChild ? '--childModules' : '';
const stdout = await executeHub(unityHubPath, `install-modules --version ${unityVersion} ${modulesArgs} ${childModulesArg}`);
if (!stdout.includes('successfully')) {
if (!stdout.includes('successfully') && !stdout.includes("it's already installed")) {
throw new Error('unity modules installation failed');
}
}
Expand Down

0 comments on commit acb85a6

Please sign in to comment.