File tree Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 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
+ }
Original file line number Diff line number Diff line change 2
2
# Licensed under the MIT License.
3
3
Param (
4
4
$ModulesToGenerate = @ (),
5
- [string ] $ModuleMappingConfigPath = (" ..\msgraph-sdk-powershell\ config\ ModulesMapping.jsonc" ),
5
+ [string ] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot " ../microsoftgraph/ config/ ModulesMapping.jsonc" ),
6
6
[string ] $SDKDocsPath = (" ..\msgraph-sdk-powershell\src" ),
7
7
[string ] $SDKOpenApiPath = (" ..\msgraph-sdk-powershell" ),
8
8
[string ] $WorkLoadDocsPath = (" ..\microsoftgraph-docs-powershell\microsoftgraph" ),
Original file line number Diff line number Diff line change 6
6
[System.Collections.Generic.HashSet [string ]]$BetaCommandGetVariantList = @ (),
7
7
[System.Collections.Generic.HashSet [string ]]$V1CommandListVariantList = @ (),
8
8
[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" ),
10
10
[string ] $SDKDocsPath = (" ..\msgraph-sdk-powershell\src" ),
11
11
[string ] $WorkLoadDocsPath = (" ..\microsoftgraph-docs-powershell\microsoftgraph" ),
12
12
[string ] $GraphDocsPath = (" ..\microsoft-graph-docs" )
You can’t perform that action at this time.
0 commit comments