Cleanup
parent
b74e55e108
commit
865933c53c
|
|
@ -379,6 +379,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.CLI = void 0;
|
||||
const commander_ts_1 = __webpack_require__(40451);
|
||||
|
|
@ -386,6 +389,7 @@ const __1 = __webpack_require__(41359);
|
|||
const core = __importStar(__webpack_require__(42186));
|
||||
const remote_client_1 = __webpack_require__(95575);
|
||||
const action_yaml_1 = __webpack_require__(11091);
|
||||
const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
|
||||
class CLI {
|
||||
static RunCli(options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
|
|
@ -408,11 +412,12 @@ class CLI {
|
|||
if (results.length === 0) {
|
||||
throw new Error('no CLI mode found');
|
||||
}
|
||||
cloud_runner_logger_1.default.log(results[0].key);
|
||||
return yield results[0].asyncFunc();
|
||||
});
|
||||
}
|
||||
static isCliMode(options) {
|
||||
return options.mode !== undefined && options.mode === '';
|
||||
return options.mode !== undefined && options.mode !== '';
|
||||
}
|
||||
static SetupCli() {
|
||||
__1.Input.githubEnabled = false;
|
||||
|
|
@ -2412,7 +2417,7 @@ class CloudRunnerBuildCommandProcessor {
|
|||
return `echo "---"
|
||||
echo "start"
|
||||
${commands}
|
||||
echo "end--${buildParameters.logId}"
|
||||
echo "end---${buildParameters.logId}"
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
|
@ -2793,7 +2798,7 @@ class SetupStep {
|
|||
static downloadRepository(image, environmentVariables, secrets) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
cloud_runner_logger_1.default.logLine('Starting step 1/2 download game files from repository, try to use cache');
|
||||
cloud_runner_logger_1.default.logLine('Starting step 1/2 setup game files from repository using caching and referencing git repo');
|
||||
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
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3,6 +3,7 @@ import { BuildParameters, CloudRunner, ImageTag, Input } from '..';
|
|||
import * as core from '@actions/core';
|
||||
import { RemoteClient } from './remote-client';
|
||||
import { ActionYamlReader } from '../input-readers/action-yaml';
|
||||
import CloudRunnerLogger from '../cloud-runner/services/cloud-runner-logger';
|
||||
export class CLI {
|
||||
static async RunCli(options: any): Promise<void> {
|
||||
core.info(`Entrypoint: ${options.mode}`);
|
||||
|
|
@ -30,10 +31,12 @@ export class CLI {
|
|||
throw new Error('no CLI mode found');
|
||||
}
|
||||
|
||||
CloudRunnerLogger.log(results[0].key);
|
||||
|
||||
return await results[0].asyncFunc();
|
||||
}
|
||||
static isCliMode(options: any) {
|
||||
return options.mode !== undefined && options.mode === '';
|
||||
return options.mode !== undefined && options.mode !== '';
|
||||
}
|
||||
|
||||
public static SetupCli() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export class CloudRunnerBuildCommandProcessor {
|
|||
return `echo "---"
|
||||
echo "start"
|
||||
${commands}
|
||||
echo "end--${buildParameters.logId}"
|
||||
echo "end---${buildParameters.logId}"
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue