File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Import-Module -Name @(
6
6
. SYNOPSIS
7
7
GitHub Actions - Export Artifact
8
8
. DESCRIPTION
9
- Export artifact to share with all of the subsequent jobs in the same workflow, and/or persist the data .
9
+ Export artifact to share with all of the subsequent jobs in the current workflow run , and/or store it .
10
10
. PARAMETER Name
11
11
Name of the artifact.
12
12
. PARAMETER Path
@@ -88,15 +88,15 @@ Set-Alias -Name 'Save-Artifact' -Value 'Export-Artifact' -Option 'ReadOnly' -Sco
88
88
. SYNOPSIS
89
89
GitHub Actions - Import Artifact
90
90
. DESCRIPTION
91
- Import artifact that shared from the past jobs in the same workflow.
91
+ Import artifact that shared from the previous jobs in the current workflow run .
92
92
. PARAMETER Name
93
93
Name of the artifact.
94
94
. PARAMETER Destination
95
95
Absolute literal path of the destination of the artifact(s).
96
96
. PARAMETER CreateSubDirectory
97
97
Whether to create a sub-directory with artifact name and put the data into there.
98
98
. PARAMETER All
99
- Whether to import all of the artifacts that shared from the past jobs in the same workflow; Always create sub-directories.
99
+ Whether to import all of the artifacts that shared from the previous jobs in the current workflow run ; Always create sub-directories.
100
100
. OUTPUTS
101
101
[PSCustomObject] Metadata of the imported artifact.
102
102
[PSCustomObject[]] Metadata of the imported artifacts.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Import-Module -Name @(
6
6
. SYNOPSIS
7
7
GitHub Actions - Restore Cache
8
8
. DESCRIPTION
9
- Restore cache that shared from the past jobs.
9
+ Restore cache that shared from the past jobs and/or workflows .
10
10
. PARAMETER Path
11
11
Paths of the cache, support Glob.
12
12
. PARAMETER Key
@@ -69,7 +69,7 @@ Set-Alias -Name 'Import-Cache' -Value 'Restore-Cache' -Option 'ReadOnly' -Scope
69
69
. SYNOPSIS
70
70
GitHub Actions - Save cache
71
71
. DESCRIPTION
72
- Save cache to share with the future jobs.
72
+ Save cache to share with the future jobs and/or workflows .
73
73
. PARAMETER Path
74
74
Paths of the cache, support Glob.
75
75
. PARAMETER Key
Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ Function Invoke-NodeJsWrapper {
69
69
If (! $ShouldProceed ) {
70
70
Return
71
71
}
72
+ Do {
73
+ [String ]$ExchangeFilePath = Join-Path - Path $Env: RUNNER_TEMP - ChildPath ([System.IO.Path ]::GetRandomFileName())
74
+ }
75
+ While (Test-Path - LiteralPath $ExchangeFilePath - PathType ' Leaf' )
72
76
Try {
73
- Do {
74
- [String ]$ExchangeFilePath = Join-Path - Path $Env: RUNNER_TEMP - ChildPath ([System.IO.Path ]::GetRandomFileName())
75
- }
76
- While (Test-Path - LiteralPath $ExchangeFilePath - PathType ' Leaf' )
77
77
@ { ' $name' = $Name } + $Argument |
78
78
ConvertTo-Json - Depth 100 - Compress |
79
79
Set-Content - LiteralPath $ExchangeFilePath - Confirm:$False - Encoding ' UTF8NoBOM'
You can’t perform that action at this time.
0 commit comments