Cleaning up comments around env vars
Also, move `getTemporaryDirectory` back to `actions-util`.
This commit is contained in:
parent
cc0733fd12
commit
f60ef170b0
15 changed files with 101 additions and 88 deletions
7
lib/actions-util.js
generated
7
lib/actions-util.js
generated
|
|
@ -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 !== ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue