Skip to content

Commit 4a9e097

Browse files
committed
Rectified path error
1 parent 952fb44 commit 4a9e097

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

scripts/GenerateServiceModules.ps1

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
#This script takes advantage of autorest funcitonality for copying examples to the main md files during module generation.
2-
Set-Location msgraph-sdk-powershell
3-
$date = Get-Date -Format "dd-MM-yyyy"
4-
$proposedBranch = "weekly_autorest_rerun_"+$date
5-
$exists = git branch -l $proposedBranch
6-
if ([string]::IsNullOrEmpty($exists)) {
7-
git checkout -b $proposedBranch
8-
}else{
9-
Write-Host "Branch already exists"
10-
git checkout $proposedBranch
11-
}
12-
13-
.\tools\GenerateModules.ps1 -Build -ExcludeExampleTemplates
14-
git config --global user.email "[email protected]"
15-
git config --global user.name "Timothy Wamalwa"
16-
git add .
17-
git commit -m 'Updated Md files'
1+
Param(
2+
[string] $ModuleMappingConfigPath =(Join-Path $PSScriptRoot "..\config\ModulesMapping.jsonc")
3+
)
4+
if (-not (Test-Path $ModuleMappingConfigPath)) {
5+
Write-Error "Module mapping file not be found: $ModuleMappingConfigPath."
6+
}

scripts/MsProdUpdate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT License.
33
Param(
44
$ModulesToGenerate = @(),
5-
[string] $ModuleMappingConfigPath = ("..\msgraph-sdk-powershell\config\ModulesMapping.jsonc"),
5+
[string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"),
66
[string] $SDKDocsPath = ("..\msgraph-sdk-powershell\src"),
77
[string] $SDKOpenApiPath = ("..\msgraph-sdk-powershell"),
88
[string] $WorkLoadDocsPath = ("..\microsoftgraph-docs-powershell\microsoftgraph"),

scripts/UpdateLinks.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Param(
66
[System.Collections.Generic.HashSet[string]]$BetaCommandGetVariantList= @(),
77
[System.Collections.Generic.HashSet[string]]$V1CommandListVariantList= @(),
88
[System.Collections.Generic.HashSet[string]]$BetaCommandListVariantList= @(),
9-
[string] $ModuleMappingConfigPath =(Join-Path $PSScriptRoot "..\config\ModulesMapping.jsonc"),
9+
[string] $ModuleMappingConfigPath =(Join-Path $PSScriptRoot "../microsoftgraph/config/ModulesMapping.jsonc"),
1010
[string] $SDKDocsPath = ("..\msgraph-sdk-powershell\src"),
1111
[string] $WorkLoadDocsPath = ("..\microsoftgraph-docs-powershell\microsoftgraph"),
1212
[string] $GraphDocsPath = ("..\microsoft-graph-docs")

0 commit comments

Comments
 (0)