Fix: check for retained workspace
parent
f94a2a612d
commit
2b4295a004
|
|
@ -3702,8 +3702,6 @@ const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
|||
const docker_1 = __importDefault(__nccwpck_require__(16934));
|
||||
const model_1 = __nccwpck_require__(41359);
|
||||
const fs_1 = __nccwpck_require__(57147);
|
||||
// import * as core from '@actions/core';
|
||||
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(96552));
|
||||
class LocalDockerCloudRunner {
|
||||
inspect() {
|
||||
throw new Error('Method not implemented.');
|
||||
|
|
@ -3738,6 +3736,7 @@ class LocalDockerCloudRunner {
|
|||
this.buildParameters = buildParameters;
|
||||
}
|
||||
runTask(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
|
||||
var _a;
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
cloud_runner_logger_1.default.log(buildGuid);
|
||||
cloud_runner_logger_1.default.log(commands);
|
||||
|
|
@ -3761,7 +3760,7 @@ class LocalDockerCloudRunner {
|
|||
}
|
||||
}
|
||||
let myOutput = '';
|
||||
const sharedFolder = !cloud_runner_options_1.default.retainWorkspaces ? `/data/cache/` : `/data/`;
|
||||
const sharedFolder = ((_a = this.buildParameters) === null || _a === void 0 ? void 0 : _a.retainWorkspace) ? `/data/` : `/data/cache/`;
|
||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||
const entrypointFilePath = `start.sh`;
|
||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -7,9 +7,6 @@ import Docker from '../../../docker';
|
|||
import { Action } from '../../../../model';
|
||||
import { writeFileSync } from 'fs';
|
||||
|
||||
// import * as core from '@actions/core';
|
||||
import CloudRunnerOptions from '../../cloud-runner-options';
|
||||
|
||||
class LocalDockerCloudRunner implements ProviderInterface {
|
||||
public buildParameters: BuildParameters | undefined;
|
||||
|
||||
|
|
@ -85,7 +82,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
|||
}
|
||||
}
|
||||
let myOutput = '';
|
||||
const sharedFolder = !CloudRunnerOptions.retainWorkspaces ? `/data/cache/` : `/data/`;
|
||||
const sharedFolder = this.buildParameters?.retainWorkspace ? `/data/` : `/data/cache/`;
|
||||
|
||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||
const entrypointFilePath = `start.sh`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue