pull/310/head
Frostebite 2021-12-31 15:17:21 +00:00
parent 0b5fb0518a
commit 62b4721fa2
3 changed files with 10 additions and 3 deletions

6
dist/index.js vendored
View File

@ -2806,6 +2806,7 @@ class SetupStep {
try {
cloud_runner_logger_1.default.logLine(` `);
cloud_runner_logger_1.default.logLine('Starting step 1/2 (setup game files from repository)');
cloud_runner_logger_1.default.log;
return yield cloud_runner_state_1.CloudRunnerState.CloudRunnerProviderPlatform.runTask(cloud_runner_state_1.CloudRunnerState.buildParams.buildGuid, image, `
apk update -q
apk add unzip zip git-lfs jq tree nodejs -q
@ -3427,7 +3428,10 @@ class GithubCliReader {
static GetGitHubAuthToken() {
return __awaiter(this, void 0, void 0, function* () {
try {
return yield system_1.default.run(`gh auth status -t`, [], {}, false);
return (yield system_1.default.run(`gh auth status -t`, [], {}, false))
.split(`Token: `)[1]
.replace(/ /g, '')
.replace(/\n/g, '');
}
catch (_a) {
return '';

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,10 @@ import System from '../system';
export class GithubCliReader {
static async GetGitHubAuthToken() {
try {
return await System.run(`gh auth status -t`, [], {}, false);
return (await System.run(`gh auth status -t`, [], {}, false))
.split(`Token: `)[1]
.replace(/ /g, '')
.replace(/\n/g, '');
} catch {
return '';
}