Skip to content

Commit 9c8eb10

Browse files
committed
20220630C
1 parent a72be93 commit 9c8eb10

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hugoalh.GitHubActionsToolkit/module/artifact.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Function Export-Artifact {
3636
[ValidateScript({
3737
Return ([System.IO.Path]::IsPathRooted($_) -and (Test-Path -LiteralPath $_ -PathType 'Container'))
3838
}, ErrorMessage = '`{0}` is not an exist and valid GitHub Actions artifact base root!')][Alias('Root')][String]$BaseRoot = $Env:GITHUB_WORKSPACE,
39-
[Alias('ContinueOnError', 'ContinueOnIssue', 'ContinueOnIssues', 'IgnoreIssuePath')][Switch]$IgnoreIssuePaths,
39+
[Alias('ContinueOnError', 'ContinueOnIssue', 'IgnoreIssuePath')][Switch]$IgnoreIssuePaths,
4040
[ValidateRange(1, 90)][Alias('RetentionDay')][Byte]$RetentionTime = 0
4141
)
4242
Begin {

hugoalh.GitHubActionsToolkit/module/tool-cache.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ GitHub Actions - Find Tool Cache
9292
Find the path of a tool in the local installed tool cache.
9393
.PARAMETER Name
9494
Tool name.
95-
.PARAMETER Architecture
96-
Tool architecture.
9795
.PARAMETER Version
9896
Tool version, by Semantic Versioning (SemVer).
97+
.PARAMETER Architecture
98+
Tool architecture.
9999
.OUTPUTS
100100
[String] Path of a version of a tool.
101101
[String[]] Paths of all versions of a tool.
@@ -105,8 +105,8 @@ Function Find-ToolCache {
105105
[OutputType(([String], [String[]]))]
106106
Param (
107107
[Parameter(Mandatory = $True, Position = 0)][Alias('ToolName')][String]$Name,
108-
[Alias('Arch')][String]$Architecture,
109-
[Alias('Ver')][String]$Version = '*'
108+
[Alias('Ver')][String]$Version = '*',
109+
[Alias('Arch')][String]$Architecture
110110
)
111111
If (!(Test-GitHubActionsEnvironment -ToolCache)) {
112112
Return (Write-Error -Message 'Unable to get GitHub Actions tool cache resources!' -Category 'ResourceUnavailable')

0 commit comments

Comments
 (0)