From 331c11fea1b9d8052889fa673f4cf8e6eeec06f3 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 5 Nov 2022 16:45:32 +0100 Subject: [PATCH] gha: Fix unzip extracting to the wrong directory --- .github/workflows/Nuget-publishing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Nuget-publishing.yml b/.github/workflows/Nuget-publishing.yml index 156f42ac..53e25218 100644 --- a/.github/workflows/Nuget-publishing.yml +++ b/.github/workflows/Nuget-publishing.yml @@ -105,7 +105,7 @@ jobs: fs.writeFileSync(`/home/runner/${artifact.name}.zip`, Buffer.from(download.data)); console.log(`Unzipping: /home/runner/${artifact.name}.zip`); - await exec.exec("unzip", [`/home/runner/${artifact.name}.zip`]); + await exec.exec("unzip", [`/home/runner/${artifact.name}.zip`, "-d", "/home/runner/"]); console.log(`Extracting library from 7z file to: ${destDir}/${sourceFile}`); await exec.exec("7z", ["e", `-o${destDir}/`, `/home/runner/${artifact.name}`, `${sourceDir}${sourceFile}`], options); if (sourceFile != destFile) {