Skip to content

Escaped double quotes #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines/powershell-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions scripts/MsProdUpdate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -227,15 +227,15 @@ 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 } |
Out-File $File
}
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
Expand Down