diff options
| author | Cory Miller <13227161+cory-miller@users.noreply.github.com> | 2024-05-16 13:40:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 13:40:36 -0400 |
| commit | b597165659c4ea3e309cb7c6bbe9a4a020c876cd (patch) | |
| tree | 7bb2bb1d31f3fc9d7942c51f7a26829126b7bc7d /src/github-api-helper.ts | |
| parent | e473097dfa6baba201c3143ed037372c824ed208 (diff) | |
Check platform for extension (#1732)
Diffstat (limited to 'src/github-api-helper.ts')
| -rw-r--r-- | src/github-api-helper.ts | 4 |
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 |
