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 vendored
View File

@ -6477,8 +6477,7 @@ 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 || if (!cloud_runner_options_1.default.githubChecks || cloud_runner_1.default.isCloudRunnerAsyncEnvironment) {
(!cloud_runner_1.default.isCloudRunnerEnvironment && cloud_runner_options_1.default.asyncCloudRunner)) {
return; return;
} }
GitHub.longDescriptionContent += `\n${longDescription}`; GitHub.longDescriptionContent += `\n${longDescription}`;
@ -6508,7 +6507,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.isCloudRunnerAsyncEnvironment) { if (cloud_runner_1.default.isCloudRunnerEnvironment && cloud_runner_options_1.default.asyncCloudRunner) {
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;

2
dist/index.js.map 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`) { public static async updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
if ( if (!CloudRunnerOptions.githubChecks || CloudRunner.isCloudRunnerAsyncEnvironment) {
!CloudRunnerOptions.githubChecks ||
(!CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner)
) {
return; return;
} }
GitHub.longDescriptionContent += `\n${longDescription}`; GitHub.longDescriptionContent += `\n${longDescription}`;
@ -117,7 +114,7 @@ class GitHub {
data.conclusion = result; data.conclusion = result;
} }
if (CloudRunner.isCloudRunnerAsyncEnvironment) { if (CloudRunner.isCloudRunnerEnvironment && CloudRunnerOptions.asyncCloudRunner) {
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`);