Only allow ephemeral runners when using cloud runner integration tests flag to avoid unexpected hangup

pull/395/head
Frostebite 2022-05-01 19:34:48 +01:00
parent a47d096f5c
commit 6668e1133e
3 changed files with 7 additions and 3 deletions

3
dist/index.js vendored
View File

@ -1360,7 +1360,8 @@ class AWSTaskRunner {
core.setFailed('unity build failed');
core.error('BUILD FAILED!');
}
else if (message.includes(': Listening for Jobs')) {
else if (cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests &&
message.includes(': Listening for Jobs')) {
core.setOutput('cloud runner stop watching', 'true');
shouldReadLogs = false;
shouldCleanup = false;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -222,7 +222,10 @@ class AWSTaskRunner {
core.setOutput('build-result', 'failed');
core.setFailed('unity build failed');
core.error('BUILD FAILED!');
} else if (message.includes(': Listening for Jobs')) {
} else if (
CloudRunner.buildParameters.cloudRunnerIntegrationTests &&
message.includes(': Listening for Jobs')
) {
core.setOutput('cloud runner stop watching', 'true');
shouldReadLogs = false;
shouldCleanup = false;