Skip to content

Commit

Permalink
check project
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 23, 2023
1 parent 47d7c85 commit 4d3e913
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ function CalculateProjectsAndApps {

if ($projects.Count -eq 0) { $projects = @("*") }
$projectList = @($projects | ForEach-Object { $_.Replace('\','_').Replace('/','_') })
Write-Host "Include Project Patterns"
$projectList | ForEach-Object { Write-Host "- $_" }
$excludeProjectList = @($excludeProjects | ForEach-Object { $_.Replace('\','_').Replace('/','_') })
Write-Host "Exclude Project Patterns"
$excludeProjectList | ForEach-Object { Write-Host "- $_" }
foreach($mask in 'Apps','Dependencies') {
$allApps = @{}
Get-ChildItem -Path $tempFolder -Directory | ForEach-Object {
Expand Down
8 changes: 6 additions & 2 deletions Actions/Github-Helper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,7 @@ function CheckBuildJobsInWorkflowRun {
$per_page = 100
$page = 1

$anySuccessful = $false
$allSuccessful = $true

while($true) {
Expand All @@ -751,7 +752,10 @@ function CheckBuildJobsInWorkflowRun {
}
$buildJobs = @($workflowJobs.jobs | Where-Object { $_.name.StartsWith('Build ') })

if($buildJobs.conclusion -ne 'success') {
if($buildJobs.conclusion -eq 'success') {
$anySuccessful = $true
}
else {
# If there is a build job that is not successful, there is not need to check further
$allSuccessful = $false
}
Expand All @@ -764,7 +768,7 @@ function CheckBuildJobsInWorkflowRun {
$page += 1
}

return $allSuccessful
return ($allSuccessful -and $anySuccessful)
}

<#
Expand Down

0 comments on commit 4d3e913

Please sign in to comment.