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)][ValidateScript({ Return (Test-ArtifactName-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
31
+
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-ArtifactName-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
[ValidateScript({ Return ([System.IO.Path]::IsPathRooted($_) -and (Test-Path-LiteralPath $_-PathType 'Container')) }, ErrorMessage ='`{0}` is not an exist and valid GitHub Actions artifact base root!')][Alias('Root')][String]$BaseRoot=$Env:GITHUB_WORKSPACE,
[Parameter(ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return ([System.IO.Path]::IsPathRooted($_) -and (Test-Path-LiteralPath $_-PathType 'Container')) }, ErrorMessage ='`{0}` is not an exist and valid GitHub Actions artifact base root!')][Alias('Root')][String]$BaseRoot=$Env:GITHUB_WORKSPACE,
[Parameter(Mandatory=$True,ParameterSetName='Single',Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-ArtifactName-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
[Parameter(Mandatory=$True,Position=0)][ValidateScript({ Return (Test-CacheKey-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions cache key, and/or more than 512 characters!')][Alias('Keys','Name','Names')][String[]]$Key,
31
+
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-CacheKey-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions cache key, and/or more than 512 characters!')][Alias('Keys','Name','Names')][String[]]$Key,
[Parameter(Mandatory=$True,Position=0)][ValidateScript({ Return (Test-CacheKey-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions cache key, and/or more than 512 characters!')][Alias('Name')][String]$Key,
103
+
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-CacheKey-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions cache key, and/or more than 512 characters!')][Alias('Name')][String]$Key,
@@ -128,7 +128,7 @@ Function Enable-ProcessingCommands {
128
128
Param (
129
129
[Parameter(Mandatory=$True,Position=0)][ValidateScript({ Return (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
0 commit comments