File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,20 +9,25 @@ branding:
99inputs :
1010 ModuleName :
1111 description : ' The name of the PowerShell module'
12+ type : string
1213 required : true
1314 Source :
1415 description : ' The source directory containing the module (relative to the workspace)'
16+ type : string
1517 required : false
1618 default : ' '
1719 Output :
1820 description : ' The output directory for storing the module (relative to the workspace)'
21+ type : string
1922 required : false
2023 default : ' '
2124 Imports :
2225 description : ' Comma-separated list of import folders'
26+ type : string
2327 required : true
2428 Debug :
2529 description : ' Enable debug mode'
30+ type : string
2631 required : false
2732 default : ' false'
2833
Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ param (
33 [string ]$Source = " " ,
44 [string ]$Output = " " ,
55 [string ]$Imports ,
6- [bool ]$Debug = $ false
6+ [string ]$Debug = ' false'
77)
88try
99{
1010 Write-Host " ::group::Starting the Create PowerShell Module task..."
1111 Write-Host " ::group::Setting up variables"
1212
13+ [bool ]$Debug = [System.Convert ]::ToBoolean($Debug )
14+
1315 if ([string ]::IsNullOrEmpty($Source ))
1416 {
1517 $sourcePath = " $ ( $env: GITHUB_WORKSPACE ) "
You can’t perform that action at this time.
0 commit comments