From e96d4c35fc646574e47323f38139dd60d1ca2156 Mon Sep 17 00:00:00 2001 From: Sam Selikoff Date: Tue, 22 Oct 2024 15:21:37 -0400 Subject: [PATCH 1/3] Update Stainless github action --- .github/workflows/upload-to-stainless.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml index 4628deb..b710fcf 100644 --- a/.github/workflows/upload-to-stainless.yml +++ b/.github/workflows/upload-to-stainless.yml @@ -3,6 +3,7 @@ on: push: branches: - main + workflow_dispatch: jobs: stainless: @@ -10,8 +11,13 @@ jobs: name: Stainless — Upload OpenAPI specification steps: - uses: actions/checkout@v4 - - uses: stainless-api/upload-openapi-spec-action@v0.2.1 + - uses: stainless-api/upload-openapi-spec-action@main with: stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} - input_path: "openapi.yaml" + input_path: 'openapi.yaml' + output_path: 'openapi.documented.yaml' project_name: 'togetherai' + guess_config: true + # - uses: readmeio/rdme@v8 + # with: + # rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }} From fcdb0263c4433d3a5ba9230fb0f343c640724f4c Mon Sep 17 00:00:00 2001 From: Sam Selikoff Date: Tue, 22 Oct 2024 15:33:55 -0400 Subject: [PATCH 2/3] wip --- .github/workflows/upload-to-stainless.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml index b710fcf..813db5c 100644 --- a/.github/workflows/upload-to-stainless.yml +++ b/.github/workflows/upload-to-stainless.yml @@ -16,8 +16,7 @@ jobs: stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} input_path: 'openapi.yaml' output_path: 'openapi.documented.yaml' - project_name: 'togetherai' - guess_config: true + project_name: 'TogetherAI' # - uses: readmeio/rdme@v8 # with: # rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }} From e38f800ef7c0d1c77168d672cabe3bd562ec19ab Mon Sep 17 00:00:00 2001 From: Sam Selikoff Date: Tue, 22 Oct 2024 15:35:25 -0400 Subject: [PATCH 3/3] Try readme action --- .github/workflows/upload-to-stainless.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml index 813db5c..eec7008 100644 --- a/.github/workflows/upload-to-stainless.yml +++ b/.github/workflows/upload-to-stainless.yml @@ -17,6 +17,6 @@ jobs: input_path: 'openapi.yaml' output_path: 'openapi.documented.yaml' project_name: 'TogetherAI' - # - uses: readmeio/rdme@v8 - # with: - # rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }} + - uses: readmeio/rdme@v8 + with: + rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }}