Skip to content

Commit 644adde

Browse files
authored
Add help content post-processing (#1093)
1 parent 3abb1a0 commit 644adde

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.azure-pipelines/generation-templates/cli-kiota.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ steps:
1717
BuildConfiguration: $(buildConfiguration)
1818
OutputFullPath: $(kiotaDirectory)/output/*
1919
RepoModelsDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}/src/generated/
20+
WorkspaceRootDir: $(Build.SourcesDirectory)/${{ parameters.repoName }}
2021

2122
- task: DotNetCoreCLI@2
2223
displayName: Restore packages

scripts/copy-cli-models-kiota.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ Write-Host "Removed the existing generated files in the repo." -ForegroundColor
99
New-Item -ItemType directory -Path $env:RepoModelsDir
1010
Move-Item $env:OutputFullPath $env:RepoModelsDir
1111
Write-Host "Moved the models from $modelsDirectory into the local repo." -ForegroundColor Green
12+
13+
$helpUpdateScript = Join-Path -Path $env:WorkspaceRootDir -ChildPath .azure-pipelines/powershell/HelpUpdate.ps1
14+
. $helpUpdateScript
15+
16+
Update-UsersMeAlias -WorkspaceRootDir $env:WorkspaceRootDir
17+
Update-MeUserIdHelp -WorkspaceRootDir $env:WorkspaceRootDir
18+
19+
Write-Host "Updated 'me' help content in $env:RepoModelsDir" -ForegroundColor Green

0 commit comments

Comments
 (0)