Skip to content

Commit

Permalink
Check DocsReadMeName exist, if not, give an default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu committed Feb 1, 2021
1 parent bd57f52 commit 9bed8c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions eng/common/scripts/artifact-metadata-parsing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,21 @@ function VerifyPackages($artifactLocation, $workingDirectory, $apiUrl, $releaseS
Write-Host "Maybe a pkg version wasn't updated properly?"
exit(1)
}

$docsReadMeName = ""
if ($parsedPackage.DocsReadMeName) {
$docsReadMeName = $parsedPackage.DocsReadMeName
}
else {
$docsReadMeName = $parsedPackage.PackageId
}
$pkgList += New-Object PSObject -Property @{
PackageId = $parsedPackage.PackageId
PackageVersion = $parsedPackage.PackageVersion
GroupId = $parsedPackage.GroupId
Tag = $parsedPackage.ReleaseTag
ReleaseNotes = $parsedPackage.ReleaseNotes
ReadmeContent = $parsedPackage.ReadmeContent
DocsReadMeName = $parsedPackage.DocsReadMeName
DocsReadMeName = $docsReadMeName
IsPrerelease = [AzureEngSemanticVersion]::ParseVersionString($parsedPackage.PackageVersion).IsPrerelease
}
}
Expand Down

0 comments on commit 9bed8c8

Please sign in to comment.