Allow overriding path of temporary files.

This commit is contained in:
Chris Gavin 2021-02-01 15:18:14 +00:00
parent 6408d72268
commit ed751ece83
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
12 changed files with 22 additions and 15 deletions

View file

@ -34,7 +34,7 @@ async function run() {
if (!(await actionsUtil.sendStatusReport(await actionsUtil.createStatusReportBase("autobuild", "starting", startedAt)))) {
return;
}
const config = await config_utils.getConfig(actionsUtil.getRequiredEnvParam("RUNNER_TEMP"), logger);
const config = await config_utils.getConfig(actionsUtil.getTemporaryDirectory(), logger);
if (config === undefined) {
throw new Error("Config file could not be found at expected location. Has the 'init' action been called?");
}