From 52f5d627170fffa8698b646351539736b434169a Mon Sep 17 00:00:00 2001 From: freddydk Date: Thu, 28 Apr 2022 20:23:35 +0000 Subject: [PATCH] Collect changes from freddydk/*@main --- Actions/Github-Helper.psm1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Actions/Github-Helper.psm1 b/Actions/Github-Helper.psm1 index efa4984b6..125890aa8 100644 --- a/Actions/Github-Helper.psm1 +++ b/Actions/Github-Helper.psm1 @@ -15,6 +15,7 @@ function Get-dependencies { $downloadedList = @() $probingPathsJson | ForEach-Object { $dependency = $_ + if (-not ($dependency.PsObject.Properties.name -eq "repo")) { throw "AppDependencyProbingPaths needs to contain a repo property, pointing to the repository on which you have a dependency" } @@ -45,11 +46,12 @@ function Get-dependencies { } $artifact = $artifacts | Select-Object -First 1 - if (!($artifact)) { - throw "Could not find any artifacts that matches the criteria." + if ($artifact) { + $download = DownloadArtifact -path $saveToPath -token $dependency.authTokenSecret -artifact $artifact + } + else { + Write-Host -ForegroundColor Red "Could not find any artifacts that matches '*$mask*'" } - - $download = DownloadArtifact -path $saveToPath -token $dependency.authTokenSecret -artifact $artifact } else {