File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ resources:
2525 type : github
2626 endpoint : microsoftgraph
2727 name : microsoftgraph/msgraph-sdk-powershell
28- ref : features/2.0
28+ ref : v2/examples-update
2929
3030jobs :
3131- job : PowerShellExamplesUpdate
7878 targetType : inline
7979 pwsh : true
8080 script : |
81- git config --global user.email "[email protected] " 82- git config --global user.name "Timothy Wamalwa"
8381 git status
8482 git add .
8583 git commit -m "Updating examples"
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ function Start-Generator {
4343 Get-ExternalDocsUrl - ManualExternalDocsUrl $ManualExternalDocsUrl - GenerationMode $GenerationMode - GraphProfilePath $ModulePath - Command $GraphCommand - GraphProfile $ProfilePath - Module $GraphModule
4444
4545 }
46+ git add .
47+ git commit - m " Importing updates from API reference"
4648}
4749function Get-FilesByProfile {
4850 Param (
@@ -404,7 +406,7 @@ function Update-ExampleFile {
404406 }
405407
406408}
407-
409+ Set-Location msgraph - sdk - powershell
408410$JsonContent = Get-Content - Path $MetaDataJsonFile
409411$DeserializedContent = $JsonContent | ConvertFrom-Json
410412foreach ($Data in $DeserializedContent )
@@ -445,7 +447,7 @@ if ($ModulesToGenerate.Count -eq 0) {
445447 [HashTable ] $ModuleMapping = Get-Content $ModuleMappingConfigPath | ConvertFrom-Json - AsHashTable
446448 $ModulesToGenerate = $ModuleMapping.Keys
447449}
448-
450+ Set-Location ..\msgraph - sdk - powershell
449451Start-Generator - ModulesToGenerate $ModulesToGenerate - GenerationMode " auto"
450452
451453# Comment the above and uncomment the below start command, if you manually want to manually pass ExternalDocs url.
You can’t perform that action at this time.
0 commit comments