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

[CI Environment] Update the module table generation #3407

Merged
merged 11 commits into from
Jul 27, 2023
25 changes: 0 additions & 25 deletions .azuredevops/platformPipelines/platform.updateReadMe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,31 +64,6 @@ jobs:

Set-ReadMeModuleTable @functionInput -Verbose

# Update the `modules` folder ReadMe ([`/modules/README.md`](https://github.com/Azure/ResourceModules/blob/main/modules/README.md))
- task: PowerShell@2
displayName: 'Update module folder ReadMe'
inputs:
targetType: inline
pwsh: true
script: |
# Load used functions
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(relativeScriptPath_SetReadMeModuleTable)')

$functionInput = @{
ModulesPath = Join-Path '$(System.DefaultWorkingDirectory)' 'modules'
FilePath = Join-Path '$(System.DefaultWorkingDirectory)' 'modules' 'README.md'
Organization = '$(System.CollectionUri)'.Split('/')[3]
RepositoryName = '$(Build.Repository.Name)'
ColumnsInOrder = @('Name', 'ProviderNamespace','ResourceType')
Environment = 'ADO'
ProjectName = '$(System.TeamProject)'
}

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

Set-ReadMeModuleTable @functionInput -Verbose

# Update the module overview table ([`/docs/wiki/The library - Module overview.md`](https://github.com/Azure/ResourceModules/wiki/The%20library%20-%20Module%20overview))
- task: PowerShell@2
displayName: 'Update module outline'
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/platform.updateReadMe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,6 @@ jobs:

Set-ReadMeModuleTable @functionInput -Verbose

# Update the `modules` folder ReadMe ([`/modules/README.md`](https://github.com/Azure/ResourceModules/blob/main/modules/README.md))
- name: 'Update module folder ReadMe'
shell: pwsh
run: |
# Load used functions
. (Join-Path $env:GITHUB_WORKSPACE $env:relativeScriptPath_SetReadMeModuleTable)

$functionInput = @{
ModulesPath = Join-Path $env:GITHUB_WORKSPACE 'modules'
FilePath = Join-Path $env:GITHUB_WORKSPACE 'modules' 'README.md'
Organization = ($env:GITHUB_REPOSITORY).split('/')[0]
RepositoryName = ($env:GITHUB_REPOSITORY).split('/')[1]
ColumnsInOrder = @('ProviderNamespace','ResourceType', 'Name')
Environment = 'GitHub'
}

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

Set-ReadMeModuleTable @functionInput -Verbose

# Update the module overview table ([`/docs/wiki/The library - Module overview.md`](https://github.com/Azure/ResourceModules/wiki/The%20library%20-%20Module%20overview))
- name: 'Update module outline'
shell: pwsh
Expand Down
Loading