Skip to content

Commit 759aaf3

Browse files
committed
Made changes to git config
1 parent b0557a5 commit 759aaf3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.azure-pipelines/weekly-examples-update.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

3030
jobs:
3131
- job: PowerShellExamplesUpdate
@@ -78,8 +78,6 @@ jobs:
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"

tools/ExamplesGenerator.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}
4749
function 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
410412
foreach($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
449451
Start-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.

0 commit comments

Comments
 (0)