feat(actions): refactor as composite action to be able to pass env vars

This commit is contained in:
Alvaro Muñoz
2024-02-16 14:06:46 +01:00
parent e2699c31f8
commit c58c4e0d54
4 changed files with 16 additions and 6 deletions

View File

@@ -28678,12 +28678,12 @@ async function installPack(codeql, path) {
try {
await runCommand(codeql, ["pack", "install"], path);
await runCommand(codeql, ["pack", "install"], path);
core.info("Installed local packs ...");
return true;
}
catch (error) {
core.warning("Failed to install local packs ...");
}
core.info("Installed local packs ...");
return false;
}
exports.installPack = installPack;
@@ -30815,4 +30815,4 @@ module.exports = parseParams
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;

View File

@@ -116,7 +116,6 @@ export async function installPack(
} catch (error) {
core.warning("Failed to install local packs ...");
}
core.info("Installed local packs ...");
return false;
}

View File

@@ -12,7 +12,7 @@ export interface GHConfig {
export async function newGHConfig(): Promise<GHConfig> {
return {
path: "",
path: "/usr/bin/",
};
}