Skip to content

Commit d7244c7

Browse files
build: export API
1 parent 8eda598 commit d7244c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/Submit-GeneratorUpdatePr.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,16 @@ try {
213213
} catch {
214214
Write-Warning-Log "OpenAI code generation failed: $_"
215215
}
216+
Pop-Location
217+
218+
# Export the API
219+
Write-Log "Updating API"
220+
Push-Location "."
221+
try {
222+
pwsh scripts/Export-Api.ps1
223+
} catch {
224+
Write-Warning-Log "Exporting API failed: $_"
225+
}
216226
Pop-Location
217227

218228
# Check if there are changes to commit
@@ -230,6 +240,7 @@ try {
230240
Write-Log "Adding and committing changes"
231241
git add codegen/package.json
232242
git add codegen/generator/src/OpenAI.Library.Plugin.csproj
243+
git add api
233244
git add package-lock.json
234245
git add ./ # Add any generated code changes
235246

0 commit comments

Comments
 (0)