From b9439685f334b1adf0ffbdc4bfdff220ec21cbaf Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Wed, 9 Nov 2022 14:29:32 -0300 Subject: [PATCH] FIX: new swagger info --- .github/workflows/deploy-manually.yml | 29 +- docsfera.json | 5968 +++++++++++++++++++++++++ src/main.ts | 47 +- swagger.txt | 1 - 4 files changed, 6016 insertions(+), 29 deletions(-) create mode 100644 docsfera.json delete mode 100644 swagger.txt diff --git a/.github/workflows/deploy-manually.yml b/.github/workflows/deploy-manually.yml index 67f8afe..2e0d9be 100644 --- a/.github/workflows/deploy-manually.yml +++ b/.github/workflows/deploy-manually.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: environment: - description: 'Deployment environment' + description: "Deployment environment" required: true type: choice options: @@ -39,11 +39,11 @@ jobs: new_release_version: ${{ (steps.semantic.outputs.new_release_published == 'true' && steps.semantic.outputs.new_release_version) || (github.event_name == 'workflow_dispatch' && '0.0.0') }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - if: github.event_name != 'workflow_dispatch' name: Semantic Release - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v3 id: semantic with: semantic_version: 16 @@ -73,7 +73,7 @@ jobs: if: ${{ github.event_name == 'workflow_dispatch' || needs.semantic_release.outputs.new_release_published == 'true' }} needs: [extract_environment, semantic_release] runs-on: - [self-hosted, '${{ needs.extract_environment.outputs.environment }}'] + [self-hosted, "${{ needs.extract_environment.outputs.environment }}"] steps: - name: Checkout @@ -145,12 +145,12 @@ jobs: api_docs: needs: [extract_environment, semantic_release, deploy] runs-on: - [self-hosted, '${{ needs.extract_environment.outputs.environment }}'] + [self-hosted, "${{ needs.extract_environment.outputs.environment }}"] steps: - name: Checkout uses: actions/checkout@v2 - - name: Extract Docs BlockId and PageId + - name: Extract Docs BlockId and PageId env: ENV: ${{ needs.extract_environment.outputs.environment }} DEV_DOCS_BLOCK_ID: ${{ secrets.DEV_DOCS_BLOCK_ID }} @@ -181,16 +181,7 @@ jobs: DOCS_PAGE_ID: ${{ steps.extract_docs_info.outputs.page_id }} DOCS_BLOCK_ID: ${{ steps.extract_docs_info.outputs.block_id }} run: | - SWAGGER=`cat swagger.txt` - curl --request POST \ - --url $DOCS_URL \ - --header 'Content-Type: application/json' \ - --data @<(cat <