Skip to content

Commit e0f741d

Browse files
make a cut here
1 parent b09578c commit e0f741d

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

dist/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28324,6 +28324,9 @@ function main() {
2832428324
*******
2832528325
`);
2832628326
yield (0, promises_1.chmod)(tool, '755');
28327+
const installedVersion = yield determineInstalledVersion(tool);
28328+
core.setOutput('installed-version', installedVersion);
28329+
core.info(`Can determine with og name: ${installedVersion}`);
2832728330
const binDir = node_path_1.default.join(process.env.HOME, 'bin');
2832828331
if (!(0, fs_1.existsSync)(binDir)) {
2832928332
core.info(`Binary dir not found. Creating one at ${binDir}`);
@@ -28333,8 +28336,10 @@ function main() {
2833328336
yield (0, promises_1.symlink)(tool, symlinkPath);
2833428337
core.info(`Adding to path: ${symlinkPath}`);
2833528338
core.addPath(symlinkPath);
28336-
// const installedVersion = await determineInstalledVersion('pglt')
28337-
// core.setOutput('installed-version', installedVersion)
28339+
/**
28340+
* TODO: GH Runner still won't find the `pglt` binary
28341+
* The `tool` binary path works, however – seems to be something with symlink?
28342+
*/
2833828343
}
2833928344
catch (err) {
2834028345
if (err instanceof Error) {

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.

src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ async function main() {
9898

9999
await chmod(tool, '755')
100100

101+
const installedVersion = await determineInstalledVersion(tool)
102+
core.setOutput('installed-version', installedVersion)
103+
core.info(`Can determine with og name: ${installedVersion}`)
104+
101105
const binDir = path.join(process.env.HOME!, 'bin')
102106
if (!existsSync(binDir)) {
103107
core.info(`Binary dir not found. Creating one at ${binDir}`)
@@ -110,8 +114,10 @@ async function main() {
110114
core.info(`Adding to path: ${symlinkPath}`)
111115
core.addPath(symlinkPath)
112116

113-
// const installedVersion = await determineInstalledVersion('pglt')
114-
// core.setOutput('installed-version', installedVersion)
117+
/**
118+
* TODO: GH Runner still won't find the `pglt` binary
119+
* The `tool` binary path works, however – seems to be something with symlink?
120+
*/
115121
} catch (err) {
116122
if (err instanceof Error) {
117123
core.setFailed(err.message)

0 commit comments

Comments
 (0)