Skip to content

Commit c14138e

Browse files
MInor changes before testing
1 parent d31235a commit c14138e

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

createpowershellmodule.ps1

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ param (
77
)
88
try
99
{
10-
Write-Host "::group::Starting the BuildModule task..."
10+
Write-Host "::group::Starting the Create PowerShell Module task..."
1111
Write-Host "::group::Setting up variables"
1212

1313
if ([string]::IsNullOrEmpty($Source))
@@ -28,17 +28,15 @@ try
2828
$outputPath = "$($env:GITHUB_WORKSPACE)\$($Output)"
2929
}
3030

31-
$artifactsPath = "$($env:GITHUB_WORKSPACE)\artifacts"
3231
$modulePath = "$($outputPath)\$($ModuleName).psm1"
3332

3433
if ($Debug)
3534
{
36-
Write-Host "::debug::ModuleName : $($ModuleName)"
37-
Write-Host "::debug::SourcePath : $($sourcePath)"
38-
Write-Host "::debug::OutputPath : $($outputPath)"
39-
Write-Host "::debug::ModulePath : $($modulePath)"
40-
Write-Host "::debug::Imports : $($imports)"
41-
Write-Host "::debug::artifactsPath : $($artifactsPath)"
35+
Write-Host "::debug::ModuleName : $($ModuleName)"
36+
Write-Host "::debug::SourcePath : $($sourcePath)"
37+
Write-Host "::debug::OutputPath : $($outputPath)"
38+
Write-Host "::debug::ModulePath : $($modulePath)"
39+
Write-Host "::debug::Imports : $($imports)"
4240
}
4341

4442
$stringbuilder = [System.Text.StringBuilder]::new()
@@ -57,10 +55,6 @@ try
5755
New-Item -ItemType Directory -Path $outputPath | Out-Null
5856
}
5957

60-
Write-Host "Copying Module manifest"
61-
Copy-Item -Path "$($artifactsPath)\$($ModuleName)\*" -Destination $outputPath -Recurse
62-
Write-Host "::endgroup::"
63-
6458
Write-Host "::group::Processing import folders..."
6559
foreach ($importFolder in $importFolders)
6660
{

0 commit comments

Comments
 (0)