mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 07:30:32 +00:00 
			
		
		
		
	Check platform for extension (#1732)
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cory Miller
					Cory Miller