Don't force the directory to exist/into PATH

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
Yuri Norwood 2022-11-07 12:22:16 +13:00 committed by GitHub
parent 4d413e5432
commit 5e50217ad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,12 +17,6 @@ async function downloadRelease(octokit, os, org, repo, release, token) {
const extract = os === "windows" ? "tar -xvf" : "tar -xvzf";
const archive = `${tempdir}gotestfmt${postfix}`;
if (os === "windows") {
// Ensure the that the install target exists
fs.mkdirSync(binpath, { recursive: true })
core.addPath(binpath);
}
// 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