Skip to content

Commit 73a0230

Browse files
Updated Booleans
1 parent 2cd2a6b commit 73a0230

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,25 @@ branding:
99
inputs:
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

createpowershellmodule.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)
88
try
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)"

0 commit comments

Comments
 (0)