Skip to content

Commit

Permalink
Try fix PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Jan 9, 2024
1 parent 53803a1 commit 2384c72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ jobs:
}
}
$projectToBuild = (Resolve-Path -Path $projectToBuild -Relative).Replace("\", "/")
# Only proceed when his project has not been built yet
if (-not ($processedProjects -contains $projectToBuild)) {
if ([string]::IsNullOrEmpty($projectToBuild)) {
Write-Output "::warning:: Found no csproj for file $file"
}
else {
$processedProjects += $projectToBuild
$projectToBuild = (Resolve-Path -Path $projectToBuild -Relative).Replace("\", "/")
if ($excluded_projects -contains $projectToBuild) {
Write-Output "::notice:: Skipping build for excluded project: $projectToBuild"
Write-Output "| $projectToBuild | Skipped |" | Out-File -FilePath $jobSummaryFile -Append
Expand All @@ -95,7 +97,6 @@ jobs:
Write-Output "::group:: Building $projectToBuild"
dotnet build $projectToBuild
$processedProjects += $projectToBuild
if ($LASTEXITCODE -gt 0) {
Write-Output "::error:: Build failed for $projectToBuild"
Expand Down

0 comments on commit 2384c72

Please sign in to comment.