Skip to content

Commit

Permalink
feat: Moved Get-BRMRepositoryName to SharedScripts (Azure#682)
Browse files Browse the repository at this point in the history
## Description

- Moved `Get-BRMRepositoryName` to `SharedScripts`
- Tested all 5 invocations to ensure the new paths are resolved
correctly

---------

Co-authored-by: Erika Gressi <[email protected]>
  • Loading branch information
AlexanderSehr and eriqua authored Nov 30, 2023
1 parent 1436704 commit 1180d89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Publish-ModuleFromPathToPBR {
# Load used functions
. (Join-Path $PSScriptRoot 'helper' 'Get-ModulesToPublish.ps1')
. (Join-Path $PSScriptRoot 'helper' 'Get-ModuleTargetVersion.ps1')
. (Join-Path $PSScriptRoot 'helper' 'Get-BRMRepositoryName.ps1')
. (Join-Path (Split-Path $PSScriptRoot) 'sharedScripts' 'Get-BRMRepositoryName.ps1')
. (Join-Path $PSScriptRoot 'helper' 'New-ModuleReleaseTag.ps1')
. (Join-Path $PSScriptRoot 'helper' 'Get-ModuleReadmeLink.ps1')
. (Join-Path (Split-Path $PSScriptRoot -Parent) 'sharedScripts' 'tokenReplacement' 'Convert-TokensInFileList.ps1')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Publish-ModuleFromTagToPBR {
)

# Load used functions
. (Join-Path $PSScriptRoot 'helper' 'Get-BRMRepositoryName.ps1')
. (Join-Path (Split-Path $PSScriptRoot) 'sharedScripts' 'Get-BRMRepositoryName.ps1')
. (Join-Path $PSScriptRoot 'helper' 'Get-ModuleReadmeLink.ps1')
. (Join-Path (Split-Path $PSScriptRoot -Parent) 'sharedScripts' 'tokenReplacement' 'Convert-TokensInFileList.ps1')

Expand Down
2 changes: 1 addition & 1 deletion avm/utilities/pipelines/sharedScripts/Set-ModuleReadMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ function Set-ModuleReadMe {
. (Join-Path $PSScriptRoot 'helper' 'Get-IsParameterRequired.ps1')
. (Join-Path $PSScriptRoot 'helper' 'Get-SpecsAlignedResourceName.ps1')
. (Join-Path $PSScriptRoot 'helper' 'ConvertTo-OrderedHashtable.ps1')
. (Join-Path (Split-Path $PSScriptRoot -Parent) 'publish' 'helper' 'Get-BRMRepositoryName.ps1')
. (Join-Path $PSScriptRoot 'Get-BRMRepositoryName.ps1')

# Check template & make full path
$TemplateFilePath = Resolve-Path -Path $TemplateFilePath -ErrorAction Stop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $repoRootPath = (Get-Item $PSScriptRoot).Parent.Parent.Parent.Parent.Parent.Pare
. (Join-Path $repoRootPath 'avm' 'utilities' 'pipelines' 'sharedScripts' 'helper' 'Get-IsParameterRequired.ps1')
. (Join-Path $repoRootPath 'avm' 'utilities' 'pipelines' 'sharedScripts' 'helper' 'ConvertTo-OrderedHashtable.ps1')
. (Join-Path $repoRootPath 'avm' 'utilities' 'pipelines' 'sharedScripts' 'helper' 'Get-CrossReferencedModuleList.ps1')
. (Join-Path $repoRootPath 'avm' 'utilities' 'pipelines' 'publish' 'helper' 'Get-BRMRepositoryName.ps1')
. (Join-Path $repoRootPath 'avm' 'utilities' 'pipelines' 'sharedScripts' 'Get-BRMRepositoryName.ps1')

####################################
# Load test-specific functions #
Expand Down

0 comments on commit 1180d89

Please sign in to comment.