diff --git a/dist/index.js b/dist/index.js index 09fd14c..e059b50 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10198,6 +10198,7 @@ async function installGitHubReleaseBinary(octokit, targetRelease, storageDirecto if (fs.existsSync(destinationFilename)) { if (ignoreExisting) { core2.info(`Binary already exists at ${destinationFilename}, ignoring and leaving system as-is`); + core2.addPath(destinationDirectory); return; } } diff --git a/src/index.ts b/src/index.ts index 35e44af..1068c9c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -87,6 +87,8 @@ async function installGitHubReleaseBinary( if (fs.existsSync(destinationFilename)) { if (ignoreExisting) { core.info(`Binary already exists at ${destinationFilename}, ignoring and leaving system as-is`); + // Still add the directory to PATH so the binary can be found + core.addPath(destinationDirectory); return; } }