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/src/github-api-helper.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/github-api-helper.ts')
-rw-r--r--src/github-api-helper.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts
index 8eb65d1..1ff27c2 100644
--- a/src/github-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -35,7 +35,9 @@ export async function downloadRepository(
// Write archive to disk
core.info('Writing archive to disk')
const uniqueId = uuid()
- const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`)
+ const archivePath = IS_WINDOWS
+ ? path.join(repositoryPath, `${uniqueId}.zip`)
+ : path.join(repositoryPath, `${uniqueId}.tar.gz`)
await fs.promises.writeFile(archivePath, archiveData)
archiveData = Buffer.from('') // Free memory