test checks

pull/479/head
Frostebite 2022-12-06 00:07:26 +00:00
parent cf3b8f127e
commit c6bdec539c
4 changed files with 12 additions and 5 deletions

7
dist/index.js vendored
View File

@ -722,7 +722,10 @@ class CloudRunnerOptions {
return CloudRunnerOptions.getInput('githubChecks') || false;
}
static get githubOwner() {
return CloudRunnerOptions.githubRepo.split(`github.com/`)[1] || false;
return CloudRunnerOptions.githubRepo.split(`/`)[0] || false;
}
static get githubRepoName() {
return CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
}
// ### ### ###
// Git syncronization parameters
@ -1029,7 +1032,7 @@ class CloudRunner {
CloudRunner.setup(buildParameters);
try {
if (cloud_runner_options_1.default.githubChecksEnabled) {
yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, buildParameters.githubRepo, buildParameters.gitPrivateToken, 'test-check-name', buildParameters.gitSha, 'A check test', buildParameters.buildGuid);
yield github_1.default.createGitHubCheck(cloud_runner_options_1.default.githubOwner, cloud_runner_options_1.default.githubRepoName, buildParameters.gitPrivateToken, 'test-check-name', buildParameters.gitSha, 'A check test', buildParameters.buildGuid);
}
if (buildParameters.retainWorkspace) {
CloudRunner.lockedWorkspace = `${CloudRunner.retainedWorkspacePrefix}-${CloudRunner.buildParameters.buildGuid}`;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,11 @@ class CloudRunnerOptions {
}
static get githubOwner() {
return CloudRunnerOptions.githubRepo.split(`github.com/`)[1] || false;
return CloudRunnerOptions.githubRepo.split(`/`)[0] || false;
}
static get githubRepoName() {
return CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
}
// ### ### ###

View File

@ -72,7 +72,7 @@ class CloudRunner {
if (CloudRunnerOptions.githubChecksEnabled) {
await GitHub.createGitHubCheck(
CloudRunnerOptions.githubOwner,
buildParameters.githubRepo,
CloudRunnerOptions.githubRepoName,
buildParameters.gitPrivateToken,
'test-check-name',
buildParameters.gitSha,