diff --git a/index.js b/index.js index 5aabe19..4e06ba1 100644 --- a/index.js +++ b/index.js @@ -17,11 +17,6 @@ async function downloadRelease(octokit, os, org, repo, release, token) { const extract = os === "windows" ? "tar -xvf" : "tar -xvzf"; const archive = `${tempdir}gotestfmt${postfix}`; - // Make sure that the install directory is on the PATH - if (os === "windows") { - execSync(`echo "${binpath}" >> $env:GITHUB_PATH`); - } - // Search through the latest release assets for an install canidate for (let asset of releaseAssets.data) { // Check if the asset name matches the determined postfix @@ -38,8 +33,9 @@ async function downloadRelease(octokit, os, org, repo, release, token) { } // Ensure the that the install target exists - console.log("Preparing install target...") - fs.mkdirSync(binpath, { recursive: true }) + console.log("Preparing install target..."); + fs.mkdirSync(binpath, { recursive: true }); + core.addPath(binpath); // Extract the archive into the install target console.log("Unpacking archive file...")