Use @actions/io to locate binaries
This commit is contained in:
parent
64cc90bcd4
commit
b58f4471c8
36 changed files with 69 additions and 233 deletions
4
lib/util.js
generated
4
lib/util.js
generated
|
|
@ -86,7 +86,7 @@ const path = __importStar(require("path"));
|
|||
const util_1 = require("util");
|
||||
const core = __importStar(require("@actions/core"));
|
||||
const exec = __importStar(require("@actions/exec/lib/exec"));
|
||||
const safe_which_1 = require("@chrisgavin/safe-which");
|
||||
const io = __importStar(require("@actions/io"));
|
||||
const check_disk_space_1 = __importDefault(require("check-disk-space"));
|
||||
const del_1 = __importDefault(require("del"));
|
||||
const get_folder_size_1 = __importDefault(require("get-folder-size"));
|
||||
|
|
@ -940,7 +940,7 @@ async function cleanUpGlob(glob, name, logger) {
|
|||
}
|
||||
async function isBinaryAccessible(binary, logger) {
|
||||
try {
|
||||
await (0, safe_which_1.safeWhich)(binary);
|
||||
await io.which(binary, true);
|
||||
logger.debug(`Found ${binary}.`);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue