You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidatePattern('^(?:[\da-z][\da-z_-]*)?[\da-z]$', ErrorMessage ='`{0}` is not a valid GitHub Actions command!')][String]$Command,
If (!(Test-GitHubActionsEnvironmentPath-InputObject $FileCommandPath)) {
89
+
Throw
90
+
}
91
+
}
92
+
Catch {
93
+
Write-Error-Message "Unable to write the GitHub Actions file command: Environment path ``$($FileCommand.ToUpper())`` is undefined!"-Category 'ResourceUnavailable'
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidatePattern('^(?:[\da-z][\da-z_-]*)?[\da-z]$', ErrorMessage ='`{0}` is not a valid GitHub Actions stdout command!')][Alias('Command')][String]$StdOutCommand,
@@ -69,7 +69,7 @@ Function Disable-ProcessingCommands {
69
69
Param (
70
70
[Parameter(Position=0)][ValidateScript({ Test-ProcessingCommandsEndToken-InputObject $_ }, ErrorMessage ='Parameter `EndToken` must be in single line string, more than or equal to 4 characters, not match any GitHub Actions commands, and unique!')][Alias('EndKey','EndValue','Key','Token','Value')][String]$EndToken= (New-CommandsEndToken)
@@ -132,7 +132,7 @@ Function Enable-ProcessingCommands {
132
132
Param (
133
133
[Parameter(Mandatory=$True,Position=0)][ValidateScript({ Test-ProcessingCommandsEndToken-InputObject $_ }, ErrorMessage ='Parameter `EndToken` must be in single line string, more than or equal to 4 characters, and not match any GitHub Actions commands!')][Alias('EndKey','EndValue','Key','Token','Value')][String]$EndToken
Copy file name to clipboardExpand all lines: hugoalh.GitHubActionsToolkit/module/log.psm1
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Function Enter-LogGroup {
32
32
Param (
33
33
[Parameter(Mandatory=$True,Position=0)][ValidatePattern('^.+$', ErrorMessage ='Parameter `Title` must be in single line string!')][Alias('Header','Summary')][String]$Title
0 commit comments