File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ jobs:
110110 }
111111
112112 Restore-PSOptions $psOptionsPath
113- Write-Verbose -Message "Restoring PSOptions from $psoptionsFilePath " -Verbose
113+ Write-Verbose -Message "Restoring PSOptions from $psOptionsPath " -Verbose
114114 Get-PSOptions | Write-Verbose -Verbose
115115
116116 $signedFolder, $pkgFilter = switch ($packageType) {
Original file line number Diff line number Diff line change @@ -129,7 +129,15 @@ jobs:
129129 Restore-PSOptions -PSOptionsPath "$psoptionsFilePath"
130130 Get-PSOptions | Write-Verbose -Verbose
131131
132+ if (-not (Test-Path "$repoRoot/tools/metadata.json")) {
133+ throw "metadata.json not found in $repoRoot/tools"
134+ }
135+
132136 $metadata = Get-Content "$repoRoot/tools/metadata.json" -Raw | ConvertFrom-Json
137+
138+ Write-Verbose -Verbose "metadata:"
139+ $metadata | Out-String | Write-Verbose -Verbose
140+
133141 $LTS = $metadata.LTSRelease.Package
134142
135143 if ($LTS) {
You can’t perform that action at this time.
0 commit comments