Sync eng/common directory with azure-sdk-tools for PR 2064 (#2953)
This commit is contained in:
parent
6303dd6d32
commit
975ad22708
@ -75,7 +75,7 @@ steps:
|
||||
DefaultBranchVariableName: TargetBranchName
|
||||
|
||||
- pwsh: |
|
||||
$packageInfoJson = '${{ convertToJson(parameters.PackageInfoLocations) }}'.Trim('"')
|
||||
$packageInfoJson = '${{ convertToJson(parameters.PackageInfoLocations) }}'.Trim('"').Replace("\\", "/")
|
||||
$packageInfoLocations = ConvertFrom-Json $packageInfoJson
|
||||
${{ parameters.ScriptDirectory }}/Update-DocsMsMetadata.ps1 `
|
||||
-PackageInfoJsonLocations $packageInfoLocations `
|
||||
|
||||
@ -62,6 +62,7 @@ function GetAdjustedReadmeContent($ReadmeContent, $PackageInfo, $PackageMetadata
|
||||
|
||||
# Generate the release tag for use in link substitution
|
||||
$tag = "$($PackageInfo.Name)_$($PackageInfo.Version)"
|
||||
Write-Host "The tag of package: $tag"
|
||||
$date = Get-Date -Format "MM/dd/yyyy"
|
||||
|
||||
|
||||
@ -97,9 +98,13 @@ ms.service: $service
|
||||
}
|
||||
|
||||
function UpdateDocsMsMetadataForPackage($packageInfoJsonLocation) {
|
||||
if (!(Test-Path $packageInfoJsonLocation)) {
|
||||
LogWarning "Package metadata not found for $packageInfoJsonLocation"
|
||||
return
|
||||
}
|
||||
|
||||
$packageInfoJson = Get-Content $packageInfoJsonLocation -Raw
|
||||
$packageInfo = ConvertFrom-Json $packageInfoJson
|
||||
|
||||
$originalVersion = [AzureEngSemanticVersion]::ParseVersionString($packageInfo.Version)
|
||||
if ($packageInfo.DevVersion) {
|
||||
# If the package is of a dev version there may be language-specific needs to
|
||||
|
||||
Loading…
Reference in New Issue
Block a user