File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1- VERSION  = 1.104 .0
1+ VERSION  = 1.105 .0
22LATEST_RELEASE_TAG =$(shell  git describe --tags --abbrev=0) 
33LATEST_COMMIT_HASH =$(shell  git rev-parse HEAD) 
44LATEST_COMMIT_CHART_VERSION =$(shell  git --no-pager show ${LATEST_COMMIT_HASH}:config/helm/aws-node-termination-handler/Chart.yaml | grep 'version:' | cut -d' ' -f2 | tr -d '[:space:]') 
Original file line number Diff line number Diff line change @@ -60,7 +60,26 @@ $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 "  } |  Where-Object  { $_.tag_name   -eq  $Version  }).id
63+ 
64+ try  {
65+     $Response  =  (Invoke-RestMethod  - Uri " https://api.github.com/repos/LikithaVemulapalli/aws-node-termination-handler/releases"   - Headers @ {Authorization  =  " token $env: GITHUB_TOKEN "  }
66+ } catch  {
67+     Write-Output  " Failed to retrieve releases from GitHub: $_ " 
68+     exit  1 
69+ }
70+ 
71+ Write-Output  " API Response:" 
72+ Write-Output  $Response 
73+ 
74+ $release  =  $Response  |  Where-Object  { $_.tag_name   -eq  $Version  }
75+ 
76+ Write-Output  " Filtered Release" 
77+ Write-Output  $release 
78+ 
79+ $ReleaseId  =  $release.id  
80+ 
81+ Write-Output  " Release ID:" 
82+ Write-Output  $ReleaseId 
6483
6584if  (-not  $ReleaseId ) {
6685    Write-Output  " ❌ Failed to find release ID for version $Version   ❌" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments