File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed
Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff 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) {
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments