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
50 changes: 50 additions & 0 deletions .github/workflows/stainless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Stainless SDK builds

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'agentex/openapi.yaml'
- '.github/workflows/stainless.yml'
push:
branches:
- main
paths:
- 'agentex/openapi.yaml'
- '.github/workflows/stainless.yml'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

Comment thread
declan-scale marked this conversation as resolved.
env:
STAINLESS_ORG: sgp
STAINLESS_PROJECT: agentex-sdk
OAS_PATH: agentex/openapi.yaml
FAIL_ON: fatal

jobs:
build:
name: Stainless build
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
sparse-checkout: |
agentex/openapi.yaml
sparse-checkout-cone-mode: false

- name: Run build
uses: stainless-api/upload-openapi-spec-action/build@0908d431428c675af1d590f1c6e49146cd5c4c2e
with:
org: ${{ env.STAINLESS_ORG }}
project: ${{ env.STAINLESS_PROJECT }}
oas_path: ${{ env.OAS_PATH }}
fail_on: ${{ env.FAIL_ON }}
Loading