Skip to content

Commit 208bf6e

Browse files
authored
Merge pull request MicrosoftDocs#199 from MicrosoftDocs/msprod_metadata_30-01-2023
Escaped double quotes
2 parents 5810306 + 46cbc8b commit 208bf6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

azure-pipelines/powershell-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
git config --global user.name "Timothy Wamalwa"
9090
cd microsoftgraph-docs-powershell
9191
$date = Get-Date -Format "dd-MM-yyyy"
92-
$proposedBranch = "weekly_update_help_files_msprodvaluesOne"+$date
92+
$proposedBranch = "weekly_update_help_files_msprodvaluesTwo"+$date
9393
git add .
9494
git commit -m "Updating help files "+$date
9595
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $proposedBranch

scripts/MsProdUpdate.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function Get-ExternalDocs-Url {
166166
}
167167

168168
if ($MethodName -eq "DELETE") {
169-
$externalDocUrl = $path[$UriPath].delete.externalDocs.url
169+
$ExternalDocUrl = $path[$UriPath].delete.externalDocs.url
170170
}
171171

172172
if ($MethodName -eq "PUT") {
@@ -227,15 +227,15 @@ function WebScrapping {
227227
}
228228
}
229229
#Remove double qoutes from ms prod
230-
$MsprodContent = $MsprodContent.Trim('"');
230+
$MsprodContent = $MsprodContent.Replace("`"","")
231231
$MetaDataText = "schema: 2.0.0`r`n$MsprodContent"
232232
(Get-Content $File) |
233233
Foreach-Object { $_ -replace 'schema: 2.0.0', $MetaDataText } |
234234
Out-File $File
235235
}
236236
Set-Location microsoftgraph-docs-powershell
237237
$date = Get-Date -Format "dd-MM-yyyy"
238-
$proposedBranch = "weekly_update_help_files_msprodvaluesOne"+$date
238+
$proposedBranch = "weekly_update_help_files_msprodvaluesTwo"+$date
239239
$exists = git branch -l $proposedBranch
240240
if ([string]::IsNullOrEmpty($exists)) {
241241
git checkout -b $proposedBranch

0 commit comments

Comments
 (0)