cleanup
parent
0b5fb0518a
commit
62b4721fa2
|
|
@ -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 '';
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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 '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue