FIX: Docs

This commit is contained in:
Victor Radael
2022-08-19 11:07:29 -03:00
parent 6f0f93d80d
commit 8bd5bf1526
4 changed files with 15 additions and 8 deletions
+13 -1
View File
@@ -185,7 +185,19 @@ jobs:
DOCS_BLOCK_ID: ${{ steps.extract_docs_block_id.outputs.result }}
continue-on-error: true
run: |
curl $DOCS_URL -X POST -d '{"service": "\$DOCS_API_TOKEN","pageId": "\$DOCS_PAGE_ID","blockId": "\$DOCS_BLOCK_ID","schema": "../swagger.json"}' -H 'Content-Type: application/json'
SWAGGER=`cat swagger.txt`
curl --request POST \
--url $DOCS_URL \
--header 'Content-Type: application/json' \
--data @<(cat <<EOF
{
"service": "$DOCS_API_TOKEN",
"pageId": "$DOCS_PAGE_ID",
"blockId": "$DOCS_BLOCK_ID",
"schema": $SWAGGER
}
EOF
)
- name: Cleanup Docker's Leftovers
if: always()
continue-on-error: true