custom hook files and test

pull/437/head
Frostebite 2022-10-06 22:16:39 +01:00
commit ab7f64481d
3 changed files with 3 additions and 4 deletions

3
dist/index.js vendored
View File

@ -3729,7 +3729,6 @@ 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);
@ -3753,7 +3752,7 @@ class LocalDockerCloudRunner {
}
}
let myOutput = '';
const sharedFolder = ((_a = this.buildParameters) === null || _a === void 0 ? void 0 : _a.retainWorkspace) ? `/data/` : `/data/cache/`;
const sharedFolder = `/data/`;
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
const entrypointFilePath = `start.sh`;
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
}
}
let myOutput = '';
const sharedFolder = this.buildParameters?.retainWorkspace ? `/data/` : `/data/cache/`;
const sharedFolder = `/data/`;
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
const entrypointFilePath = `start.sh`;