Skip to content

Commit 88451bf

Browse files
committed
Fix project and sln detection issues
1 parent 2e4bd14 commit 88451bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/schema-generation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ jobs:
232232
Write-Host "Building $repo..."
233233
234234
# Prefer a solution if present; otherwise build each csproj
235-
$solutions = Get-ChildItem -Recurse -Filter *.sln | Where-Object { $_.Directory.Name -notmatch '(Test|Tests|Example|Examples)' }
235+
$solutions = Get-ChildItem -Filter *.sln
236236
if ($solutions) {
237237
# Build the first solution (or loop them if you have multiple)
238238
$sln = $solutions[0].FullName
239239
../../.github/workflows/build.ps1 -SolutionOrProjectPath $sln
240240
} else {
241-
$projects = Get-ChildItem -Recurse -Filter *.csproj | Where-Object { $_.Directory.Name -notmatch '(Test|Tests|Example|Examples)' }
241+
$projects = Get-ChildItem -Recurse -Filter *.csproj | Where-Object { $_.Directory.Name -notmatch '\.ci' }
242242
foreach ($proj in $projects) {
243243
../../.github/workflows/build.ps1 -SolutionOrProjectPath $proj.FullName
244244
}

0 commit comments

Comments
 (0)