Skip to content

Commit 507c646

Browse files
authored
Add new stainless workflow to sync OAS (#473)
1 parent 4998a33 commit 507c646

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Stainless SDKs
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
STAINLESS_ORG: modern-treasury
16+
STAINLESS_PROJECT: modern-treasury
17+
OAS_PATH: ./openapi/mt_openapi_spec_v1.yaml
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v6
28+
with:
29+
fetch-depth: 2
30+
31+
- name: Run builds
32+
uses: stainless-api/upload-openapi-spec-action/build@v1
33+
with:
34+
org: ${{ env.STAINLESS_ORG }}
35+
project: ${{ env.STAINLESS_PROJECT }}
36+
oas_path: ${{ env.OAS_PATH }}
37+
stainless_api_key: ${{ secrets.STAINLESS_API_KEY }}

0 commit comments

Comments
 (0)