Skip to content

Commit

Permalink
Merge pull request #722 from aaronparker/apps
Browse files Browse the repository at this point in the history
Apps
  • Loading branch information
aaronparker authored Jul 29, 2024
2 parents fabe74e + c9935c6 commit 8eaf08e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Evergreen/Shared/Get-AdoptiumTemurin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function Get-AdoptiumTemurin {

if ([System.String]::IsNullOrWhiteSpace($Release.binary.updated_at)) {
$PSObject = [PSCustomObject]@{
Version = $Release.version.openjdk_version
ImageType = $Release.binary.image_type
Version = $Release.version.openjdk_version -replace "jdk-", ""
Date = $Release.binary.timestamp
ImageType = $Release.binary.image_type
Architecture = Get-Architecture -String $Release.binary.architecture
Type = Get-FileType -File $Uri
URI = $Uri
Expand All @@ -45,9 +45,9 @@ function Get-AdoptiumTemurin {
}
else {
$PSObject = [PSCustomObject]@{
Version = $Release.version.openjdk_version
ImageType = $Release.binary.image_type
Version = $Release.version.openjdk_version -replace "jdk-", ""
Date = $Release.binary.updated_at
ImageType = $Release.binary.image_type
Checksum = $Release.binary.installer.checksum
Size = $Release.binary.installer.size
Architecture = Get-Architecture -String $Release.binary.architecture
Expand Down
6 changes: 6 additions & 0 deletions Evergreen/Shared/Get-GitHubRepoRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ function Get-GitHubRepoRelease {
elseif (Test-Path -Path "env:GH_TOKEN") {
$params.Headers = @{ Authorization = "token $env:GH_TOKEN" }
}

# Output the parameters when using -Verbose
foreach ($item in $params.GetEnumerator()) {
Write-Verbose -Message "$($MyInvocation.MyCommand): Invoke-WebRequest parameter: $($item.name): $($item.value)."
}

Write-Verbose -Message "$($MyInvocation.MyCommand): Get GitHub release from: $Uri."
$release = Invoke-RestMethod @params
}
Expand Down

0 comments on commit 8eaf08e

Please sign in to comment.