Skip to content

Commit 2593e3f

Browse files
committed
20220526B
1 parent a369172 commit 2593e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,11 +937,11 @@ function Set-GitHubActionsState {
937937
'multiple' {
938938
$InputObject.GetEnumerator() | ForEach-Object -Process {
939939
if ($_.Name.GetType().Name -ne 'string') {
940-
Write-Error -Message 'State name must be type of string!' -Category InvalidType
940+
Write-Error -Message 'GitHub Actions state name must be type of string!' -Category InvalidType
941941
} elseif ($_.Name -notmatch '^(?:[\da-z][\da-z_-]*)?[\da-z]$') {
942942
Write-Error -Message "``$($_.Name)`` is not match the require GitHub Actions state name pattern!" -Category SyntaxError
943943
} elseif ($_.Value.GetType().Name -ne 'string') {
944-
Write-Error -Message 'State value must be type of string!' -Category InvalidType
944+
Write-Error -Message 'GitHub Actions state value must be type of string!' -Category InvalidType
945945
} else {
946946
Write-GitHubActionsCommand -Command 'save-state' -Message $_.Value -Property @{ 'name' = $_.Name }
947947
}

0 commit comments

Comments
 (0)