correcting bug with async env

pull/496/head
Frostebite 2023-01-21 22:50:43 +00:00
parent fcb8bb828e
commit f7ccee2ce2
3 changed files with 5 additions and 9 deletions

5
dist/index.js generated vendored
View File

@ -6477,8 +6477,7 @@ class GitHub {
}
static updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
return __awaiter(this, void 0, void 0, function* () {
if (!cloud_runner_options_1.default.githubChecks ||
(!cloud_runner_1.default.isCloudRunnerEnvironment && cloud_runner_options_1.default.asyncCloudRunner)) {
if (!cloud_runner_options_1.default.githubChecks || cloud_runner_1.default.isCloudRunnerAsyncEnvironment) {
return;
}
GitHub.longDescriptionContent += `\n${longDescription}`;
@ -6508,7 +6507,7 @@ class GitHub {
data.completed_at = GitHub.endedDate || GitHub.startedDate;
data.conclusion = result;
}
if (cloud_runner_1.default.isCloudRunnerAsyncEnvironment) {
if (cloud_runner_1.default.isCloudRunnerEnvironment && cloud_runner_options_1.default.asyncCloudRunner) {
yield GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
cloud_runner_logger_1.default.log(`Updating check via async update workflow`);
return;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -81,10 +81,7 @@ class GitHub {
}
public static async updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
if (
!CloudRunnerOptions.githubChecks ||
(!CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner)
) {
if (!CloudRunnerOptions.githubChecks || CloudRunner.isCloudRunnerAsyncEnvironment) {
return;
}
GitHub.longDescriptionContent += `\n${longDescription}`;
@ -117,7 +114,7 @@ class GitHub {
data.conclusion = result;
}
if (CloudRunner.isCloudRunnerAsyncEnvironment) {
if (CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner) {
await GitHub.runUpdateAsyncChecksWorkflow(data, `update`);
CloudRunnerLogger.log(`Updating check via async update workflow`);