Skip to content

Commit 53f5b7e

Browse files
build: build the library after regenerating
1 parent 1855542 commit 53f5b7e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/Submit-GeneratorUpdatePr.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,16 @@ try {
215215
}
216216
Pop-Location
217217

218-
# Export the API
219-
Write-Log "Updating API"
218+
# Build the updated library
219+
Write-Log "Building the library"
220220
Push-Location "."
221221
try {
222-
pwsh scripts/Export-Api.ps1
222+
& dotnet build src/OpenAI.csproj
223+
if ($LASTEXITCODE -ne 0) {
224+
throw "Build failed with exit code $LASTEXITCODE"
225+
}
223226
} catch {
224-
Write-Warning-Log "Exporting API failed: $_"
227+
Write-Warning-Log "Building the library failed: $_"
225228
}
226229
Pop-Location
227230

0 commit comments

Comments
 (0)