correcting bug with async env

pull/496/head
Frostebite 2023-01-20 23:51:13 +00:00
parent 237fa754fd
commit d00dc2830e
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class CloudRunner {
public static readonly retainedWorkspacePrefix: string = `retained-workspace`; public static readonly retainedWorkspacePrefix: string = `retained-workspace`;
public static githubCheckId; public static githubCheckId;
public static get isCloudRunnerEnvironment() { public static get isCloudRunnerEnvironment() {
return process.env.cloudRunnerCluster !== undefined && process.env.cloudRunnerCluster !== `local`; return process.env[`GAMECI_CLOUD_RUNNER_CLUSTER`] !== undefined && process.env[`GAMECI_CLOUD_RUNNER_CLUSTER`] !== `local`;
} }
public static get isCloudRunnerAsyncEnvironment() { public static get isCloudRunnerAsyncEnvironment() {
return CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner; return CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner;

View File

@ -114,7 +114,7 @@ class GitHub {
data.conclusion = result; data.conclusion = result;
} }
if (CloudRunner.isCloudRunnerEnvironment) { if (CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner) {
await GitHub.runUpdateAsyncChecksWorkflow(data, `update`); await GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
return; return;