Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes] Fixed incorrect Set-ReadMe pipeline template #2018

Merged
merged 5 commits into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .azuredevops/platformPipelines/platform.updateReadMe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,24 @@ jobs:

Set-ReadMeModuleTable @functionInput -Verbose

- name: 'Update module outline'
shell: pwsh
run: |
# Load used functions
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(relativeScriptPath_SetModuleOverviewTable)')
- task: PowerShell@2
displayName: 'Update module outline'
inputs:
targetType: inline
pwsh: true
script: |
# Load used functions
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(relativeScriptPath_SetModuleOverviewTable)')

$functionInput = @{
MarkdownFilePath = Join-Path '$(System.DefaultWorkingDirectory)' 'docs' 'wiki' 'The library - Module overview.md'
ModuleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' 'modules'
}
$functionInput = @{
MarkdownFilePath = Join-Path '$(System.DefaultWorkingDirectory)' 'docs' 'wiki' 'The library - Module overview.md'
ModuleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' 'modules'
}

Write-Verbose "Invoke task with" -Verbose
Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose
Write-Verbose "Invoke task with" -Verbose
Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose

Set-ModuleOverviewTable @functionInput -Verbose
Set-ModuleOverviewTable @functionInput -Verbose

- task: PowerShell@2
displayName: 'Push changes'
Expand Down
44 changes: 0 additions & 44 deletions docs/wiki/The library - Module overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,50 +122,6 @@ This section provides an overview of the library's feature set.
| 107 | MS.Databricks<p>workspaces | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | | | 141 |
| Sum | | 84 | 82 | 92 | 49 | 21 | 2 | 145 | 18014 |













































## Legend

| Term | Description |
Expand Down
2 changes: 1 addition & 1 deletion utilities/tools/platform/Set-ModuleOverviewTable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Set-ModuleOverviewTable {
}
$featureTableString = Get-ModulesFeatureOutline @functionInput -Verbose

$newContent = Merge-FileWithNewContent -oldContent $originalContentArray -newContent $featureTableString -sectionStartIdentifier '# Feature table' -contentType 'table'
$newContent = Merge-FileWithNewContent -oldContent $originalContentArray -newContent $featureTableString.TrimEnd() -sectionStartIdentifier '# Feature table' -contentType 'table'

Write-Verbose 'New content:'
Write-Verbose '============'
Expand Down