Skip to content

Commit 4a1b7e9

Browse files
committed
Update description
1 parent a7977dc commit 4a1b7e9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Import-Module -Name @(
66
.SYNOPSIS
77
GitHub Actions - Export Artifact
88
.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.
1010
.PARAMETER Name
1111
Name of the artifact.
1212
.PARAMETER Path
@@ -88,15 +88,15 @@ Set-Alias -Name 'Save-Artifact' -Value 'Export-Artifact' -Option 'ReadOnly' -Sco
8888
.SYNOPSIS
8989
GitHub Actions - Import Artifact
9090
.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.
9292
.PARAMETER Name
9393
Name of the artifact.
9494
.PARAMETER Destination
9595
Absolute literal path of the destination of the artifact(s).
9696
.PARAMETER CreateSubDirectory
9797
Whether to create a sub-directory with artifact name and put the data into there.
9898
.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.
100100
.OUTPUTS
101101
[PSCustomObject] Metadata of the imported artifact.
102102
[PSCustomObject[]] Metadata of the imported artifacts.

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Import-Module -Name @(
66
.SYNOPSIS
77
GitHub Actions - Restore Cache
88
.DESCRIPTION
9-
Restore cache that shared from the past jobs.
9+
Restore cache that shared from the past jobs and/or workflows.
1010
.PARAMETER Path
1111
Paths of the cache, support Glob.
1212
.PARAMETER Key
@@ -69,7 +69,7 @@ Set-Alias -Name 'Import-Cache' -Value 'Restore-Cache' -Option 'ReadOnly' -Scope
6969
.SYNOPSIS
7070
GitHub Actions - Save cache
7171
.DESCRIPTION
72-
Save cache to share with the future jobs.
72+
Save cache to share with the future jobs and/or workflows.
7373
.PARAMETER Path
7474
Paths of the cache, support Glob.
7575
.PARAMETER Key

hugoalh.GitHubActionsToolkit/module/internal/nodejs-wrapper.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ Function Invoke-NodeJsWrapper {
6969
If (!$ShouldProceed) {
7070
Return
7171
}
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')
7276
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')
7777
@{ '$name' = $Name } + $Argument |
7878
ConvertTo-Json -Depth 100 -Compress |
7979
Set-Content -LiteralPath $ExchangeFilePath -Confirm:$False -Encoding 'UTF8NoBOM'

0 commit comments

Comments
 (0)