mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
debug wait artifact action
This commit is contained in:
11
.github/actions/wait-artifact/action.yml
vendored
11
.github/actions/wait-artifact/action.yml
vendored
@@ -77,6 +77,17 @@ runs:
|
|||||||
$waitingFor = $artifactsAvailable.GetEnumerator() | Where-Object { $_.Value -eq $false } | ForEach-Object { $_.Key }
|
$waitingFor = $artifactsAvailable.GetEnumerator() | Where-Object { $_.Value -eq $false } | ForEach-Object { $_.Key }
|
||||||
if ($waitingFor.Count -gt 0) {
|
if ($waitingFor.Count -gt 0) {
|
||||||
Write-Host "Still waiting for: $($waitingFor -join ', '). Attempt $($attempt + 1)/$maxAttempts"
|
Write-Host "Still waiting for: $($waitingFor -join ', '). Attempt $($attempt + 1)/$maxAttempts"
|
||||||
|
if ($verbose) {
|
||||||
|
$currentlyAvailableInLoop = @()
|
||||||
|
if ($artifacts.artifacts) {
|
||||||
|
$currentlyAvailableInLoop = $artifacts.artifacts | ForEach-Object { $_.name }
|
||||||
|
}
|
||||||
|
if ($currentlyAvailableInLoop.Count -gt 0) {
|
||||||
|
Write-Host " (Verbose) Currently available in this check: $($currentlyAvailableInLoop -join ', ')"
|
||||||
|
} else {
|
||||||
|
Write-Host " (Verbose) No artifacts reported as available in this check."
|
||||||
|
}
|
||||||
|
}
|
||||||
Start-Sleep -Seconds $sleepSeconds
|
Start-Sleep -Seconds $sleepSeconds
|
||||||
$attempt++
|
$attempt++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user