Cleaning up comments around env vars

Also, move `getTemporaryDirectory` back to `actions-util`.
This commit is contained in:
Andrew Eisenberg 2021-06-03 11:18:25 -07:00
parent cc0733fd12
commit f60ef170b0
15 changed files with 101 additions and 88 deletions

7
lib/actions-util.js generated
View file

@ -43,6 +43,13 @@ function getOptionalInput(name) {
return value.length > 0 ? value : undefined;
}
exports.getOptionalInput = getOptionalInput;
function getTemporaryDirectory() {
const value = process.env["CODEQL_ACTION_TEMP"];
return value !== undefined && value !== ""
? value
: util_1.getRequiredEnvParam("RUNNER_TEMP");
}
exports.getTemporaryDirectory = getTemporaryDirectory;
function getToolCacheDirectory() {
const value = process.env["CODEQL_ACTION_TOOL_CACHE"];
return value !== undefined && value !== ""