You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems if the tool-cache extractZip function is used on a self-hosted runner where only PowerShell 5.1 or similar is available, it fails to extract the file if it does not end in .zip as the Expand-Archive cmdlet complains that it only supports files named ....zip.
It would be nice if the tool-cache extractZip function would mitigate this issue so that not all actions using it need to be "fixed".
It could for example always rename (and later rename back) or copy the file to fit the naming restriction before expanding it. Or maybe only if an powershell version that has this requirement is detected or similar.
The text was updated successfully, but these errors were encountered:
It seems if the tool-cache
extractZip
function is used on a self-hosted runner where only PowerShell 5.1 or similar is available, it fails to extract the file if it does not end in.zip
as theExpand-Archive
cmdlet complains that it only supports files named....zip
.It would be nice if the tool-cache
extractZip
function would mitigate this issue so that not all actions using it need to be "fixed".It could for example always rename (and later rename back) or copy the file to fit the naming restriction before expanding it. Or maybe only if an powershell version that has this requirement is detected or similar.
The text was updated successfully, but these errors were encountered: