publish-powershell-module-action
publish-powershell-module-action copied to clipboard
Failed to find Module Dir
You are not clear on how you are expecting the file structure to be for this to work. I created a subdir with the same name of my module, in the root of my repository.
#9 might make this obsolete
Not working under v20 of your actions. v19 no longer works at all.
you can either set INPUT_MODULEPATH to the path of your module folder, or structure your tree however you like provided you have a 1-1 of psd1 files to module root directories.
if ([string]::IsNullOrWhiteSpace($env:INPUT_MODULEPATH)) {
$Modules = Get-ChildItem -Recurse -Filter '*.psd1' |
Select-Object -Unique -ExpandProperty Directory
} else {
$Modules = @($env:INPUT_MODULEPATH)
}