mirror of
https://github.com/dadosfera/maestro.git
synced 2026-12-06 18:50:04 +00:00
Set release version on swagger when deploying main
This commit is contained in:
@@ -174,12 +174,16 @@ jobs:
|
||||
|
||||
- name: Generate API docs
|
||||
env:
|
||||
ENV: ${{ needs.extract_environment.outputs.environment }}
|
||||
DOCS_URL: ${{ secrets.DOCS_URL }}
|
||||
DOCS_API_TOKEN: ${{ secrets.DOCS_API_TOKEN }}
|
||||
DOCS_PAGE_ID: ${{ steps.extract_docs_info.outputs.page_id }}
|
||||
DOCS_BLOCK_ID: ${{ steps.extract_docs_info.outputs.block_id }}
|
||||
EVENT: ${{ github.event_name }}
|
||||
RELEASE_VERSION: ${{ needs.semantic_release.outputs.new_release_version }}
|
||||
run: |
|
||||
if [ ${EVENT} != "workflow_dispatch" ]; then
|
||||
sed -i -E "s/(\"title\": )\"Maestro.+\"/\1\"Maestro - $RELEASE_VERSION\"/g" docsfera.json
|
||||
fi
|
||||
sed -i -e "s/\${DOCS_API_TOKEN}/$DOCS_API_TOKEN/g" docsfera.json
|
||||
sed -i -e "s/\${DOCS_PAGE_ID}/$DOCS_PAGE_ID/g" docsfera.json
|
||||
sed -i -e "s/\${DOCS_BLOCK_ID}/$DOCS_BLOCK_ID/g" docsfera.json
|
||||
|
||||
+1
-1
@@ -3300,7 +3300,7 @@
|
||||
"info": {
|
||||
"title": "Maestro - fix/pipeline-details-bug",
|
||||
"description": "Documentation for Maestro gateway",
|
||||
"version": "10.11.2022 - 9:44",
|
||||
"version": "10.11.2022 - 10:7",
|
||||
"contact": {}
|
||||
},
|
||||
"tags": [],
|
||||
|
||||
Reference in New Issue
Block a user