Skip to content

Commit 4b2f08a

Browse files
Import module after installation and update output path in main.ps1
1 parent cf4a921 commit 4b2f08a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/main.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ switch ($settings) {
2525
$moduleInstallPath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force
2626
Copy-Item -Path $codePath -Destination $moduleInstallPath -Recurse -Force
2727
Get-ChildItem -Path $moduleInstallPath -Recurse | Select-Object FullName | Out-String
28+
Import-Module -Name $moduleName -Verbose
2829
}
2930
'SourceCode' {
3031
$codePath = Resolve-Path -Path 'src' | Select-Object -ExpandProperty Path
@@ -37,12 +38,12 @@ switch ($settings) {
3738
[pscustomobject]@{
3839
ModuleName = $moduleName
3940
Settings = $settings
40-
CodePath = $codePath
41+
CodePath = $moduleInstallPath
4142
LocalTestPath = $localTestPath
4243
TestPath = $testPath
4344
} | Format-List | Out-String
4445

4546
Set-GitHubOutput -Name ModuleName -Value $moduleName
46-
Set-GitHubOutput -Name CodePath -Value $codePath
47+
Set-GitHubOutput -Name CodePath -Value $moduleInstallPath
4748
Set-GitHubOutput -Name LocalTestPath -Value $localTestPath
4849
Set-GitHubOutput -Name TestPath -Value $testPath

0 commit comments

Comments
 (0)