Skip to content

Commit

Permalink
explicitly search the newest pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Marterich committed Jun 29, 2024
1 parent 34b2d79 commit 1267c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function Get-LatestRelease {
try {
$releases = Invoke-RestMethod -Uri 'https://api.github.com/repos/ChrisTitusTech/winutil/releases'
$latestRelease = $releases | Select-Object -First 1
$latestRelease = $releases | Where-Object {$_.prerelease -eq $true} | Select-Object -First 1
return $latestRelease.tag_name
} catch {
Write-Host "Error fetching release data: $_" -ForegroundColor Red
Expand Down

0 comments on commit 1267c79

Please sign in to comment.