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
Copy file name to clipboardExpand all lines: hugoalh.GitHubActionsToolkit/module/artifact.psm1
+13-19Lines changed: 13 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ Absolute and/or relative path to the file that need to export as artifact.
17
17
Absolute and/or relative literal path to the file that need to export as artifact.
18
18
.PARAMETERBaseRoot
19
19
A (literal) path that denote the base root directory of the files for control files structure.
20
-
.PARAMETERIgnoreIssuePaths
21
-
Whether the export should continue in the event of files fail to export; If set to `$False` and issue is encountered, export will stop and queued files will not export; The partial artifact availables which include files up until the issue; If set to `$True` and issue is encountered, the issue file will ignore and skip, and queued files will still export; The partial artifact availables which include everything but exclude issue files.
20
+
.PARAMETERContinueOnIssue
21
+
Whether the export should continue in the event of files fail to export; If not set and issue is encountered, export will stop and queued files will not export; The partial artifact availables which include files up until the issue; If set and issue is encountered, the issue file will ignore and skip, and queued files will still export; The partial artifact availables which include everything but exclude issue files.
}, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
31
+
[Parameter(Mandatory=$True,Position=0)][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,
}, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String[]]$Name,
107
+
[Parameter(Mandatory=$True,ParameterSetName='Select',Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-ArtifactName-InputObject $_) }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String[]]$Name,
}, 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)][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,
}, ErrorMessage ='`{0}` is not a valid GitHub Actions cache key, and/or more than 512 characters!')][Alias('Name')][String]$Key,
112
+
[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,
}, 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'-','')
66
+
[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'-','')
}, 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
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
}, ErrorMessage ='`{0}` is not a valid environment variable name!')][Alias('Key')][String]$Name,
89
+
[Parameter(Mandatory=$True,ParameterSetName='Single',Position=0,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (Test-EnvironmentVariableName-InputObject $_) }, ErrorMessage ='`{0}` is not a valid environment variable name!')][Alias('Key')][String]$Name,
92
90
[Parameter(Mandatory=$True,ParameterSetName='Single',Position=1,ValueFromPipelineByPropertyName=$True)][ValidatePattern('^.+$', ErrorMessage ='Parameter `Value` must be in single line string!')][String]$Value,
}, ErrorMessage ='`{0}` is not a valid URI!')][Alias('Url')][String[]]$Uri,
153
+
[Parameter(Mandatory=$True,Position=0,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Return (($Null-ine$_.AbsoluteUri) -and ($_.Scheme-imatch'^https?$')) }, ErrorMessage ='`{0}` is not a valid URI!')][Alias('Url')][Uri]$Uri,
0 commit comments