From 916b805f9776d721aaba9972685d786d0e48624a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 22 Nov 2024 17:33:59 +0100 Subject: [PATCH] win-installer test: revert to v5.3.0 Do not pull from a moving target, use a defined version so updates must happen in a PR and do not break others. Signed-off-by: Paul Holzinger --- contrib/win-installer/test-installer.ps1 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/contrib/win-installer/test-installer.ps1 b/contrib/win-installer/test-installer.ps1 index 88909c94c0..02990170cd 100644 --- a/contrib/win-installer/test-installer.ps1 +++ b/contrib/win-installer/test-installer.ps1 @@ -201,13 +201,11 @@ function Remove-Podman-Machine-Conf { } function Get-Latest-Podman-Setup-From-GitHub { - Write-Host "Downloading the latest Podman windows setup from GitHub..." - $apiUrl = "https://api.github.com/repos/containers/podman/releases/latest" - $response = Invoke-RestMethod -Uri $apiUrl -Headers @{"User-Agent"="PowerShell"} -ErrorAction Stop - $downloadUrl = $response.assets[0].browser_download_url + $tag = "5.3.0" + Write-Host "Downloading the $tag Podman windows setup from GitHub..." + $downloadUrl = "https://github.com/containers/podman/releases/download/v$tag/podman-$tag-setup.exe" Write-Host "Downloading URL: $downloadUrl" - $latestTag = $response.tag_name - $destinationPath = "$PSScriptRoot\podman-$latestTag-setup.exe" + $destinationPath = "$PSScriptRoot\podman-$tag-setup.exe" Write-Host "Destination Path: $destinationPath" Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath Write-Host "Command completed successfully!`n"