Skip to content

Commit ded1e70

Browse files
committed
Fix release id
1 parent 8a7ad70 commit ded1e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/upload-resources-to-github-windows.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ $ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
6060
$Version = (& "$ScriptPath/../Makefile" version -s)
6161
$BuildDir = "$ScriptPath/../build/k8s-resources/$Version"
6262
$BinaryDir = "$ScriptPath/../build/bin"
63-
$ReleaseId = (Invoke-RestMethod -Uri "https://api.github.com/repos/LikithaVemulapalli/aws-node-termination-handler/releases" -Headers @{Authorization = "token $env:GITHUB_TOKEN"} | ConvertFrom-Json | Where-Object { $_.tag_name -eq $Version }).id
63+
$ReleaseId = (Invoke-RestMethod -Uri "https://api.github.com/repos/LikithaVemulapalli/aws-node-termination-handler/releases" -Headers @{Authorization = "token $env:GITHUB_TOKEN"} | Where-Object { $_.tag_name -eq $Version }).id
6464

6565
if (-not $ReleaseId) {
66-
Write-Output "❌ Failed to find release ID for version $Version"
66+
Write-Output "❌ Failed to find release ID for version $Version "
6767
exit 1
6868
}
6969

0 commit comments

Comments
 (0)