mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add logging for metadata for LTS
This commit is contained in:
@@ -110,7 +110,7 @@ jobs:
|
||||
}
|
||||
|
||||
Restore-PSOptions $psOptionsPath
|
||||
Write-Verbose -Message "Restoring PSOptions from $psoptionsFilePath" -Verbose
|
||||
Write-Verbose -Message "Restoring PSOptions from $psOptionsPath" -Verbose
|
||||
Get-PSOptions | Write-Verbose -Verbose
|
||||
|
||||
$signedFolder, $pkgFilter = switch ($packageType) {
|
||||
|
||||
@@ -129,7 +129,15 @@ jobs:
|
||||
Restore-PSOptions -PSOptionsPath "$psoptionsFilePath"
|
||||
Get-PSOptions | Write-Verbose -Verbose
|
||||
|
||||
if (-not (Test-Path "$repoRoot/tools/metadata.json")) {
|
||||
throw "metadata.json not found in $repoRoot/tools"
|
||||
}
|
||||
|
||||
$metadata = Get-Content "$repoRoot/tools/metadata.json" -Raw | ConvertFrom-Json
|
||||
|
||||
Write-Verbose -Verbose "metadata:"
|
||||
$metadata | Out-String | Write-Verbose -Verbose
|
||||
|
||||
$LTS = $metadata.LTSRelease.Package
|
||||
|
||||
if ($LTS) {
|
||||
|
||||
Reference in New Issue
Block a user