Skip to content

Commit 14c787b

Browse files
committed
ci: Try to fix up module artifacts files
1 parent 1dae2aa commit 14c787b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-and-test-powershell-module.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,12 @@ jobs:
157157
Write-Output "Testing the module manifest file '$moduleManifestFilePath' to ensure it is valid."
158158
Test-ModuleManifest -Path $moduleManifestFilePath
159159
160-
Write-Output "Copying the module files to the module artifact directory '$moduleArtifactDirectoryPath', excluding tests."
160+
Write-Output "Copying the module files to the module artifact directory '$moduleArtifactDirectoryPath'."
161161
Copy-Item -Path $moduleDirectoryPath -Destination $moduleArtifactDirectoryPath -Exclude '*.Tests.ps1' -Recurse -Force
162162
163-
[string] $templateFilesDirectoryName = 'TemplateRepoFiles'
164-
[string] $moduleTemplateFilesDirectoryPath = Join-Path -Path $moduleDirectoryPath -ChildPath $templateFilesDirectoryName
165-
[string] $moduleArtifactTemplateFilesDirectoryPath = Join-Path -Path $moduleArtifactDirectoryPath -ChildPath $templateFilesDirectoryName
166-
Write-Output "Copying the module template repo files to the module artifact directory '$moduleArtifactTemplateFilesDirectoryPath' verbatim, to ensure test files are included."
167-
Copy-Item -Path $moduleTemplateFilesDirectoryPath -Destination $moduleArtifactTemplateFilesDirectoryPath -Recurse -Force
163+
[string] $moduleTemplateRepoFilesDirectoryPath = Join-Path -Path $moduleDirectoryPath -ChildPath 'TemplateRepoFiles'
164+
Write-Output "Copying the module template repo files '$moduleTemplateRepoFilesDirectoryPath' to the module artifact directory '$moduleArtifactDirectoryPath' verbatim, to ensure test files are included."
165+
Copy-Item -Path $moduleTemplateRepoFilesDirectoryPath -Destination $moduleArtifactDirectoryPath -Recurse -Force
168166
169167
- name: Create deploy files artifact
170168
shell: pwsh

0 commit comments

Comments
 (0)