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
[Parameter(Mandatory=$True,Position=1)][ValidatePattern('^.+$', ErrorMessage ='Parameter `Header` must be in single line string!')][Alias('Title','Value')][String]$Header,
[Parameter(Mandatory=$True,Position=1)][ValidatePattern('^.+$', ErrorMessage ='Parameter `Header` must be in single line string!')][Alias('Title','Value')][String]$Header
Method to expand compressed archive/file; Define this parameter will enforce to use defined method.
18
+
Method to expand the archive or the compressed file; Define this parameter will enforce to use the defined method.
19
19
.PARAMETER7zrPath
20
20
Literal path of the 7zr application, for long path support (only when parameter `Method` is `7z`).
21
21
22
-
Most `.7z` archives do not have this problem, if `.7z` archive contains very long path, pass the path to 7zr which will gracefully handle long paths, by default 7zdec is used because it is a very small program and is bundled with the GitHub Actions NodeJS toolkit, however it does not support long paths, 7zr is the reduced command line interface, it is smaller than the full command line interface, and it does support long paths, at the time of this writing, it is freely available from the LZMA SDK that is available on the 7-Zip website, be sure to check the current license agreement, if 7zr is bundled with your action, then the path to 7zr can be pass to this function.
22
+
Most of the `.7z` archives do not have this problem, if `.7z` archive contains very long path, pass the path to 7zr which will gracefully handle long paths, by default 7zdec is used because it is a very small program and is bundled with the GitHub Actions NodeJS toolkit, however it does not support long paths, 7zr is the reduced command line interface, it is smaller than the full command line interface, and it does support long paths, at the time of this writing, it is freely available from the LZMA SDK that is available on the 7-Zip website, be sure to check the current license agreement, if 7zr is bundled with your action, then the path to 7zr can be pass to this function.
23
23
.PARAMETERFlag
24
24
Flag to use for expand (only when parameter `Method` is `Tar` or `Xar`).
25
25
.OUTPUTS
@@ -71,7 +71,7 @@ Function Expand-ToolCacheCompressedFile {
If ([String]::IsNullOrEmpty((Get-Content-LiteralPath "Env:\$EnvironmentPath"-ErrorAction 'SilentlyContinue'))) {
100
-
Write-Error-Message "Unable to get the GitHub Actions workflow run URI: Environment path ``$EnvironmentPath`` is not defined!"-Category 'ResourceUnavailable'
If ([String]::IsNullOrEmpty((Get-Content-LiteralPath "Env:\$($Condition.Name)"-ErrorAction 'SilentlyContinue'))) {
188
+
ForEach ($ItemIn$Items) {
189
+
If ($Item.NeedTest) {
190
+
If ($Null-ieq$Item.ExpectValue) {
191
+
If ([String]::IsNullOrEmpty((Get-Content-LiteralPath "Env:\$($Item.Name)"-ErrorAction 'SilentlyContinue'))) {
190
192
$Failed=$True
191
-
Write-Warning-Message "Unable to get the GitHub Actions resources: Environment path ``$($Condition.Name)`` is not defined!"
193
+
Write-Warning-Message "Unable to get the GitHub Actions resources: Environment path ``$($Item.Name)`` is not defined!"
192
194
}
193
195
}
194
196
Else {
195
-
If ((Get-Content-LiteralPath "Env:\$($Condition.Name)"-ErrorAction 'SilentlyContinue') -ine$Condition.ExpectValue) {
197
+
If ((Get-Content-LiteralPath "Env:\$($Item.Name)"-ErrorAction 'SilentlyContinue') -ine$Item.ExpectValue) {
196
198
$Failed=$True
197
-
Write-Warning-Message "Unable to get the GitHub Actions resources: Environment path ``$($Condition.Name)`` is not defined or not equal to expect value!"
199
+
Write-Warning-Message "Unable to get the GitHub Actions resources: Environment path ``$($Item.Name)`` is not defined or not equal to expect value!"
0 commit comments