Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/sync-stainless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
run: npm install -g fern-api

- name: Generate OpenAPI spec
working-directory: fern
run: fern generate --group openapi --local
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
Expand All @@ -30,7 +31,7 @@ jobs:
SPEC_FILE=$(find openapi -name "openapi.*" -type f | head -1)
jq -Rs '{project: "agentmail", branch: "main", revision: {"openapi.json": {content: .}}}' \
"$SPEC_FILE" > /tmp/stainless-body.json
curl -sf -X POST "https://api.stainless.com/v0/builds" \
curl -sS --fail-with-body -X POST "https://api.stainless.com/v0/builds" \
-H "Authorization: Bearer $STAINLESS_API_KEY" \
-H "Content-Type: application/json" \
-d @/tmp/stainless-body.json
Expand Down
Loading