Skip to content

Commit d2bd614

Browse files
committed
20220510C
1 parent 121658f commit d2bd614

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ GitHub Actions - Add Environment Variable
8080
.DESCRIPTION
8181
Add environment variable to the system environment variables and automatically makes it available to all subsequent actions in the current job; The currently running action cannot access the updated environment variables.
8282
.PARAMETER InputObject
83-
Environment variable.
83+
Environment variables.
8484
.PARAMETER Name
8585
Environment variable name.
8686
.PARAMETER Value
@@ -226,7 +226,7 @@ function Add-GitHubActionsSecretMask {
226226
[CmdletBinding(HelpUri = 'https://github.com/hugoalh-studio/ghactions-toolkit-powershell/wiki/api_function_add-githubactionssecretmask#Add-GitHubActionsSecretMask')]
227227
[OutputType([void])]
228228
param(
229-
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)][AllowEmptyString()][Alias('Key', 'Secret', 'Token')][string]$Value,
229+
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)][Alias('Key', 'Secret', 'Token')][string]$Value = '',
230230
[Alias('WithChunk')][switch]$WithChunks
231231
)
232232
begin {}
@@ -828,7 +828,7 @@ GitHub Actions - Set Output
828828
.DESCRIPTION
829829
Set output.
830830
.PARAMETER InputObject
831-
Output.
831+
Outputs.
832832
.PARAMETER Name
833833
Name of the output.
834834
.PARAMETER Value
@@ -878,7 +878,7 @@ GitHub Actions - Set State
878878
.DESCRIPTION
879879
Set state.
880880
.PARAMETER InputObject
881-
State.
881+
States.
882882
.PARAMETER Name
883883
Name of the state.
884884
.PARAMETER Value
@@ -892,7 +892,7 @@ function Set-GitHubActionsState {
892892
param(
893893
[Parameter(Mandatory = $true, ParameterSetName = 'multiple', Position = 0, ValueFromPipeline = $true)][Alias('Input', 'Object')][hashtable]$InputObject,
894894
[Parameter(Mandatory = $true, ParameterSetName = 'single', Position = 0, ValueFromPipelineByPropertyName = $true)][ValidatePattern('^.+$')][Alias('Key')][string]$Name,
895-
[Parameter(ParameterSetName = 'single', Position = 1, ValueFromPipelineByPropertyName = $true)][AllowEmptyString()][string]$Value
895+
[Parameter(ParameterSetName = 'single', Position = 1, ValueFromPipelineByPropertyName = $true)][string]$Value = ''
896896
)
897897
begin {}
898898
process {

0 commit comments

Comments
 (0)