Check platform for extension (#1732)

这个提交包含在:
Cory Miller
2024-05-16 13:40:36 -04:00
提交者 GitHub
父节点 44c2b7a8a4
当前提交 24ed1a3528
共有 2 个文件被更改,包括 6 次插入 和 2 次删除

查看文件

@ -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