Skip to content

Commit 9e14d3c

Browse files
build
1 parent 6f919f6 commit 9e14d3c

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

dist/index.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28252,6 +28252,9 @@ const toolCache = __importStar(__nccwpck_require__(3472));
2825228252
const node_child_process_1 = __nccwpck_require__(1421);
2825328253
const node_util_1 = __nccwpck_require__(7975);
2825428254
const node_os_1 = __importDefault(__nccwpck_require__(8161));
28255+
const node_path_1 = __importDefault(__nccwpck_require__(6760));
28256+
const promises_1 = __nccwpck_require__(1943);
28257+
const fs_1 = __nccwpck_require__(9896);
2825528258
const doExec = (0, node_util_1.promisify)(node_child_process_1.exec);
2825628259
const platformMappings = {
2825728260
darwin: 'darwin',
@@ -28320,7 +28323,14 @@ function main() {
2832028323
${tool}
2832128324
*******
2832228325
`);
28323-
core.addPath(tool);
28326+
const binDir = node_path_1.default.join(process.env.HOME, 'bin');
28327+
if (!(0, fs_1.existsSync)(binDir)) {
28328+
core.info(`Binary dir not found. Creating one at ${binDir}`);
28329+
yield (0, promises_1.mkdir)(binDir, { recursive: true });
28330+
}
28331+
const symlinkPath = node_path_1.default.join(binDir, 'pglt');
28332+
(0, promises_1.symlink)(tool, symlinkPath);
28333+
core.addPath(symlinkPath);
2832428334
const installedVersion = yield determineInstalledVersion();
2832528335
core.setOutput('installed-version', installedVersion);
2832628336
}
@@ -28408,6 +28418,14 @@ module.exports = require("fs");
2840828418

2840928419
/***/ }),
2841028420

28421+
/***/ 1943:
28422+
/***/ ((module) => {
28423+
28424+
"use strict";
28425+
module.exports = require("fs/promises");
28426+
28427+
/***/ }),
28428+
2841128429
/***/ 8611:
2841228430
/***/ ((module) => {
2841328431

@@ -28472,6 +28490,14 @@ module.exports = require("node:os");
2847228490

2847328491
/***/ }),
2847428492

28493+
/***/ 6760:
28494+
/***/ ((module) => {
28495+
28496+
"use strict";
28497+
module.exports = require("node:path");
28498+
28499+
/***/ }),
28500+
2847528501
/***/ 7075:
2847628502
/***/ ((module) => {
2847728503

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)