Skip to content

Commit 81f55a1

Browse files
committed
Remove internal function
1 parent ee8c21a commit 81f55a1

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,6 @@ function Format-GHActionsCommand {
4040
}
4141
<#
4242
.SYNOPSIS
43-
GitHub Actions - Internal - Test Environment Variable
44-
.DESCRIPTION
45-
An internal function to validate environment variable.
46-
.PARAMETER InputObject
47-
Environment variable that need to validate.
48-
.OUTPUTS
49-
Boolean
50-
#>
51-
function Test-GHActionsEnvironmentVariable {
52-
[CmdletBinding()][OutputType([bool])]
53-
param (
54-
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)][Alias('Input', 'Object')][string]$InputObject
55-
)
56-
begin {}
57-
process {
58-
if (($InputObject -match '^[\da-z_]+=.+$') -and (($InputObject -split '=').Count -eq 2)) {
59-
return $true
60-
}
61-
Write-Error -Message "Input `"$InputObject`" is not match the require environment variable pattern!" -Category SyntaxError
62-
return $false
63-
}
64-
end {}
65-
}
66-
<#
67-
.SYNOPSIS
6843
GitHub Actions - Internal - Write Workflow Command
6944
.DESCRIPTION
7045
An internal function to write workflow command.

0 commit comments

Comments
 (0)