Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorCory Miller <13227161+cory-miller@users.noreply.github.com>2024-05-16 13:40:36 -0400
committerGitHub <noreply@github.com>2024-05-16 13:40:36 -0400
commitb597165659c4ea3e309cb7c6bbe9a4a020c876cd (patch)
tree7bb2bb1d31f3fc9d7942c51f7a26829126b7bc7d /dist
parente473097dfa6baba201c3143ed037372c824ed208 (diff)
Check platform for extension (#1732)
Diffstat (limited to 'dist')
-rw-r--r--dist/index.js4
1 files changed, 3 insertions, 1 deletions
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