Skip to content
Merged
Show file tree
Hide file tree
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
47 changes: 28 additions & 19 deletions .github/workflows/deploy-openapi-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Openapi Assets

on:
push:
branches: [main]
branches: [main, feat-openapi-package]
paths:
- "packages/openapi/**"

Expand Down Expand Up @@ -96,27 +96,36 @@ jobs:
echo "pack_path=$PACK_PATH" >> "$GITHUB_OUTPUT"
echo "latest_path=$LATEST_PATH" >> "$GITHUB_OUTPUT"

- name: Create or update tagged release and upload versioned tarball
id: gh_release_tag
uses: softprops/action-gh-release@v1
with:
tag_name: "openapi-v${{ needs.pack.outputs.version }}"
name: "openapi v${{ needs.pack.outputs.version }}"
body: "Automated release for packages/openapi (pack + upload)"
files: ${{ steps.find.outputs.pack_path }}
- name: Ensure GH CLI available
run: gh --version || (echo "gh not installed" && exit 1)

- name: Upload versioned asset (replace if exists)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="openapi-v${{ needs.pack.outputs.version }}"
ASSET="artifacts/${{ needs.pack.outputs.packfile_name }}"

- name: Create or update 'latest' release and upload stable tarball
id: gh_release_latest
uses: softprops/action-gh-release@v1
with:
tag_name: "openapi-latest"
name: "openapi latest"
body: "Automated release for packages/openapi (latest)"
files: ${{ steps.find.outputs.latest_path }}
# create release if missing
if ! gh release view "$TAG" >/dev/null 2>&1; then
gh release create "$TAG" --title "OpenAPI v${{ needs.pack.outputs.version }}" --notes "Automated release"
fi

# upload and overwrite existing asset with same name
gh release upload "$TAG" "$ASSET" --clobber

- name: Upload latest asset (replace if exists)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LATEST_TAG="openapi-latest"
LATEST_ASSET="artifacts/openapi-latest.tgz"

if ! gh release view "$LATEST_TAG" >/dev/null 2>&1; then
gh release create "$LATEST_TAG" --title "OpenAPI (latest)" --notes "Automated latest release"
fi

gh release upload "$LATEST_TAG" "$LATEST_ASSET" --clobber

rebuild-schema:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions packages/openapi/descriptions/assistant-thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default {
desc: `The object type.`,
},
role: {
desc: `The role of the entity that is creating the Message.`,
desc: `The role of the entity that is creating the Message`,
},
content: {
text: {
desc: `The text contents of the Message.`,
desc: `The text contents of the Message`,
},
array: {
desc: `An array of content parts with a defined type, each can be of type text or images can be passed with image_url or image_file`,
Expand Down