mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-09 12:52:20 +02:00
Fix: Add .zip
extension to Windows package downloads for Expand-Archive
Compatibility (#916)
* Fix: specify filename during Windows package download * Changed unit test download urls
This commit is contained in:
parent
04c1311429
commit
036a523674
5 changed files with 77 additions and 8 deletions
|
@ -14,7 +14,8 @@ import {
|
|||
createSymlinkInFolder,
|
||||
isNightlyKeyword,
|
||||
writeExactPyPyVersionFile,
|
||||
getBinaryDirectory
|
||||
getBinaryDirectory,
|
||||
getDownloadFileName
|
||||
} from './utils';
|
||||
|
||||
export async function installPyPy(
|
||||
|
@ -69,7 +70,8 @@ export async function installPyPy(
|
|||
core.info(`Downloading PyPy from "${downloadUrl}" ...`);
|
||||
|
||||
try {
|
||||
const pypyPath = await tc.downloadTool(downloadUrl);
|
||||
const fileName = getDownloadFileName(downloadUrl);
|
||||
const pypyPath = await tc.downloadTool(downloadUrl, fileName);
|
||||
|
||||
core.info('Extracting downloaded archive...');
|
||||
if (IS_WINDOWS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue