async pipeline

pull/479/head
Frostebite 2022-12-15 01:06:34 +00:00
parent 2b2c6e5518
commit 0f3b6277f0
4 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -718,7 +718,7 @@ class CloudRunnerOptions {
// ### ### ###
// GitHub parameters
// ### ### ###
static get githubChecksEnabled() {
static get githubChecks() {
return CloudRunnerOptions.getInput('githubChecks') || false;
}
static get githubOwner() {
@ -6332,7 +6332,7 @@ const cloud_runner_options_1 = __importDefault(__nccwpck_require__(96552));
class GitHub {
static createGitHubCheck(summary) {
return __awaiter(this, void 0, void 0, function* () {
if (!cloud_runner_options_1.default.githubChecksEnabled || cloud_runner_options_1.default.asyncCloudRunner) {
if (!cloud_runner_options_1.default.githubChecks || cloud_runner_options_1.default.asyncCloudRunner) {
return ``;
}
const sha = cloud_runner_1.default.buildParameters.gitSha;
@ -6376,7 +6376,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.githubChecksEnabled || cloud_runner_options_1.default.asyncCloudRunner) {
if (!cloud_runner_options_1.default.githubChecks || cloud_runner_options_1.default.asyncCloudRunner) {
return;
}
GitHub.longDescriptionContent += `\n${longDescription}`;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -59,7 +59,7 @@ class CloudRunnerOptions {
// ### ### ###
// GitHub parameters
// ### ### ###
static get githubChecksEnabled() {
static get githubChecks() {
return CloudRunnerOptions.getInput('githubChecks') || false;
}

View File

@ -10,7 +10,7 @@ class GitHub {
private static endedDate: string;
public static async createGitHubCheck(summary) {
if (!CloudRunnerOptions.githubChecksEnabled || CloudRunnerOptions.asyncCloudRunner) {
if (!CloudRunnerOptions.githubChecks || CloudRunnerOptions.asyncCloudRunner) {
return ``;
}
const sha = CloudRunner.buildParameters.gitSha;
@ -57,7 +57,7 @@ class GitHub {
}
public static async updateGitHubCheck(longDescription, summary, result = `neutral`, status = `in_progress`) {
if (!CloudRunnerOptions.githubChecksEnabled || CloudRunnerOptions.asyncCloudRunner) {
if (!CloudRunnerOptions.githubChecks || CloudRunnerOptions.asyncCloudRunner) {
return;
}
GitHub.longDescriptionContent += `\n${longDescription}`;