Skip to content

Commit

Permalink
Merge pull request #94 from freddydk/main
Browse files Browse the repository at this point in the history
Dont throw on missing dependency
  • Loading branch information
freddydk authored Apr 28, 2022
2 parents 434d051 + 6af448d commit 0766ae4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Actions/Github-Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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 {

Expand Down

0 comments on commit 0766ae4

Please sign in to comment.