From b597165659c4ea3e309cb7c6bbe9a4a020c876cd Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Thu, 16 May 2024 13:40:36 -0400 Subject: Check platform for extension (#1732) --- dist/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index c39596b..e128adf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1574,7 +1574,9 @@ function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath, // Write archive to disk core.info('Writing archive to disk'); const uniqueId = (0, uuid_1.v4)(); - const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`); + const archivePath = IS_WINDOWS + ? path.join(repositoryPath, `${uniqueId}.zip`) + : path.join(repositoryPath, `${uniqueId}.tar.gz`); yield fs.promises.writeFile(archivePath, archiveData); archiveData = Buffer.from(''); // Free memory // Extract archive -- cgit v1.2.3