From 9615302e9e0ade443ff70127a5fe5d8811a472ca Mon Sep 17 00:00:00 2001 From: Atty Eleti Date: Fri, 15 Dec 2023 16:27:03 -0800 Subject: [PATCH] [github] Add GitHub Action to upload to Stainless --- .github/workflows/upload-to-stainless.yml | 16 ++++++++++++++++ .../workflows/{main.yml => validate-openapi.yml} | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/upload-to-stainless.yml rename .github/workflows/{main.yml => validate-openapi.yml} (94%) diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml new file mode 100644 index 00000000..d18b0745 --- /dev/null +++ b/.github/workflows/upload-to-stainless.yml @@ -0,0 +1,16 @@ +name: Upload to Stainless +on: + push: + branches: + - master + +jobs: + upload_to_stainless: + runs-on: ubuntu-latest + name: Stainless — Upload OpenAPI specification + steps: + - uses: actions/checkout@v3 + - uses: stainless-api/upload-openapi-spec-action@v0.2.1 + with: + stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} + input_path: "openapi.yaml" diff --git a/.github/workflows/main.yml b/.github/workflows/validate-openapi.yml similarity index 94% rename from .github/workflows/main.yml rename to .github/workflows/validate-openapi.yml index bbe92ae5..b7cce206 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/validate-openapi.yml @@ -4,7 +4,7 @@ on: types: [opened, reopened, synchronize] jobs: - test_swagger_editor_validator_service: + validate_openapi: runs-on: ubuntu-latest name: Swagger Editor Validator Service