diff --git a/azure-pipelines/powershell-docs.yml b/azure-pipelines/powershell-docs.yml index b40a729e4d41..993d0ee3a9c4 100644 --- a/azure-pipelines/powershell-docs.yml +++ b/azure-pipelines/powershell-docs.yml @@ -89,7 +89,7 @@ jobs: git config --global user.name "Timothy Wamalwa" cd microsoftgraph-docs-powershell $date = Get-Date -Format "dd-MM-yyyy" - $proposedBranch = "weekly_update_help_files_msprodvaluesOne"+$date + $proposedBranch = "weekly_update_help_files_msprodvaluesTwo"+$date git add . git commit -m "Updating help files "+$date git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $proposedBranch diff --git a/scripts/MsProdUpdate.ps1 b/scripts/MsProdUpdate.ps1 index 9b0cdb82223b..146bccd539ca 100644 --- a/scripts/MsProdUpdate.ps1 +++ b/scripts/MsProdUpdate.ps1 @@ -166,7 +166,7 @@ function Get-ExternalDocs-Url { } if ($MethodName -eq "DELETE") { - $externalDocUrl = $path[$UriPath].delete.externalDocs.url + $ExternalDocUrl = $path[$UriPath].delete.externalDocs.url } if ($MethodName -eq "PUT") { @@ -227,7 +227,7 @@ function WebScrapping { } } #Remove double qoutes from ms prod - $MsprodContent = $MsprodContent.Trim('"'); + $MsprodContent = $MsprodContent.Replace("`"","") $MetaDataText = "schema: 2.0.0`r`n$MsprodContent" (Get-Content $File) | Foreach-Object { $_ -replace 'schema: 2.0.0', $MetaDataText } | @@ -235,7 +235,7 @@ function WebScrapping { } Set-Location microsoftgraph-docs-powershell $date = Get-Date -Format "dd-MM-yyyy" -$proposedBranch = "weekly_update_help_files_msprodvaluesOne"+$date +$proposedBranch = "weekly_update_help_files_msprodvaluesTwo"+$date $exists = git branch -l $proposedBranch if ([string]::IsNullOrEmpty($exists)) { git checkout -b $proposedBranch