Skip to content

Commit b5fdca6

Browse files
authored
Merge pull request #143 from openai/dev/atty/stainless-upload
[github] Add GitHub Action to upload to Stainless
2 parents 0aadd17 + 9615302 commit b5fdca6

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Upload to Stainless
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
upload_to_stainless:
9+
runs-on: ubuntu-latest
10+
name: Stainless — Upload OpenAPI specification
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: stainless-api/[email protected]
14+
with:
15+
stainless_api_key: ${{ secrets.STAINLESS_API_KEY }}
16+
input_path: "openapi.yaml"

.github/workflows/main.yml renamed to .github/workflows/validate-openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types: [opened, reopened, synchronize]
55

66
jobs:
7-
test_swagger_editor_validator_service:
7+
validate_openapi:
88
runs-on: ubuntu-latest
99
name: Swagger Editor Validator Service
1010

0 commit comments

Comments
 (0)