correcting bug with async env
parent
fff100c14f
commit
e41c29338c
|
@ -6478,7 +6478,8 @@ class GitHub {
|
||||||
}
|
}
|
||||||
static updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
|
static updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!cloud_runner_options_1.default.githubChecks || cloud_runner_1.default.isCloudRunnerAsyncEnvironment) {
|
const isLocalAsync = cloud_runner_1.default.buildParameters.asyncWorkflow && !cloud_runner_1.default.isCloudRunnerAsyncEnvironment;
|
||||||
|
if (!cloud_runner_options_1.default.githubChecks || isLocalAsync) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GitHub.longDescriptionContent += `\n${longDescription}`;
|
GitHub.longDescriptionContent += `\n${longDescription}`;
|
||||||
|
@ -6508,7 +6509,7 @@ class GitHub {
|
||||||
data.completed_at = GitHub.endedDate || GitHub.startedDate;
|
data.completed_at = GitHub.endedDate || GitHub.startedDate;
|
||||||
data.conclusion = result;
|
data.conclusion = result;
|
||||||
}
|
}
|
||||||
if (cloud_runner_1.default.isCloudRunnerEnvironment && cloud_runner_1.default.buildParameters.asyncWorkflow) {
|
if (cloud_runner_1.default.isCloudRunnerAsyncEnvironment) {
|
||||||
yield GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
|
yield GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
|
||||||
cloud_runner_logger_1.default.log(`Updating check via async update workflow`);
|
cloud_runner_logger_1.default.log(`Updating check via async update workflow`);
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -82,7 +82,7 @@ class GitHub {
|
||||||
|
|
||||||
public static async updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
|
public static async updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
|
||||||
const isLocalAsync = CloudRunner.buildParameters.asyncWorkflow && !CloudRunner.isCloudRunnerAsyncEnvironment;
|
const isLocalAsync = CloudRunner.buildParameters.asyncWorkflow && !CloudRunner.isCloudRunnerAsyncEnvironment;
|
||||||
if (!CloudRunnerOptions.githubChecks || CloudRunner.isCloudRunnerAsyncEnvironment || isLocalAsync) {
|
if (!CloudRunnerOptions.githubChecks || isLocalAsync) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GitHub.longDescriptionContent += `\n${longDescription}`;
|
GitHub.longDescriptionContent += `\n${longDescription}`;
|
||||||
|
@ -115,7 +115,7 @@ class GitHub {
|
||||||
data.conclusion = result;
|
data.conclusion = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CloudRunner.isCloudRunnerEnvironment && CloudRunner.buildParameters.asyncWorkflow) {
|
if (CloudRunner.isCloudRunnerAsyncEnvironment) {
|
||||||
await GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
|
await GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
|
||||||
CloudRunnerLogger.log(`Updating check via async update workflow`);
|
CloudRunnerLogger.log(`Updating check via async update workflow`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue