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
+24-80Lines changed: 24 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -11,32 +11,32 @@ Import-Module -Name (
11
11
.SYNOPSIS
12
12
GitHub Actions - Export Artifact
13
13
.DESCRIPTION
14
-
Export artifact to persist data and/or share with another job in the same workflow.
14
+
Export artifact to persist data and/or share with future job in the same workflow.
15
15
.PARAMETERName
16
-
Artifact name.
16
+
Name of the artifact.
17
17
.PARAMETERPath
18
-
Absolute and/or relative path to the file that need to export as artifact.
18
+
Paths to the files that need to export as artifact.
19
19
.PARAMETERLiteralPath
20
-
Absolute and/or relative literal path to the file that need to export as artifact.
20
+
Literal paths to the files that need to export as artifact.
21
21
.PARAMETERBaseRoot
22
-
A (literal) path that denote the base root directory of the files for control files structure.
22
+
Absolute literal path of the base root directory of the files for control files structure.
23
23
.PARAMETERContinueOnIssue
24
24
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.
25
25
.PARAMETERRetentionTime
26
-
Duration of artifact expire, by days.
26
+
Duration of the artifact become expire, by days.
27
27
.OUTPUTS
28
-
[PSCustomObject] Exported artifact's metadata.
28
+
[PSCustomObject] Metadata of the exported artifact.
[Parameter(Mandatory=$True,Position=0,ValueFromPipelineByPropertyName=$True)][ValidateScript({ Test-ArtifactName-InputObject $_ }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
[Parameter(ValueFromPipelineByPropertyName=$True)][ValidateScript({ [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({ Test-ArtifactName-InputObject $_ }, ErrorMessage ='`{0}` is not a valid GitHub Actions artifact name!')][String]$Name,
0 commit comments