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(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,
[Boolean]$NoOperation=$False# When the requirements are not fulfill, only stop this function but not others.
@@ -103,8 +103,8 @@ Function Save-Cache {
103
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,
[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,
[Parameter(Position=0)][ValidateScript({ Return (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-Guid).Guid -ireplace'-','')
68
+
[Parameter(Position=0)][ValidateScript({ Return (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= (Get-RandomCommandsEndToken)
0 commit comments