Skip to content

Commit 5acf40d

Browse files
authored
Merge pull request MicrosoftDocs#194 from MicrosoftDocs/msprod_metadata_30-01-2023
Applications Module Metadata Update
2 parents e553a2a + 6678603 commit 5acf40d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/MsProdUpdate.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ function Get-FilesByProfile {
4747
)
4848

4949

50-
$ModulesToGenerate | ForEach-Object {
51-
$ModuleName = $_
50+
#$ModulesToGenerate | ForEach-Object {
51+
#$ModuleName = $_
52+
$ModuleName = "Applications"
5253
$FullModuleName = "$ModulePrefix.$ModuleName"
5354
$ModulePath = Join-Path $WorkLoadDocsPath "\$GraphProfilePath\$FullModuleName"
5455
$OpenApiFile = Join-Path $SDKOpenApiPath "\openApiDocs\v1.0\$ModuleName.yml"
@@ -58,7 +59,7 @@ function Get-FilesByProfile {
5859
$OpenApiContent = ($YamlContent | ConvertFrom-Yaml)
5960
Get-Files -GraphProfile $GraphProfile -GraphProfilePath $ModulePath -Module $ModuleName -OpenApiContent $OpenApiContent -ModulePrefix $ModulePrefix
6061
}
61-
}
62+
#}
6263

6364
}
6465
function Get-Files {
@@ -232,9 +233,9 @@ function WebScrapping {
232233
Foreach-Object { $_ -replace 'schema: 2.0.0', $MetaDataText } |
233234
Out-File $File
234235
}
235-
Set-Location microsoftgraph-docs-powershell
236+
Set-Location ..\microsoftgraph-docs-powershell
236237
$date = Get-Date -Format "dd-MM-yyyy"
237-
$proposedBranch = "weekly_update_help_files_msprodvalues"+$date
238+
$proposedBranch = "weekly_update_help_files_msprodvaluesOne"+$date
238239
$exists = git branch -l $proposedBranch
239240
if ([string]::IsNullOrEmpty($exists)) {
240241
git checkout -b $proposedBranch

0 commit comments

Comments
 (0)