From 8e007aa445a6f064bca0f0d6324546e583548327 Mon Sep 17 00:00:00 2001 From: Joffrey Date: Thu, 21 Nov 2024 15:02:49 +0100 Subject: [PATCH] fix(apigw): publish apigw doc to stage --- actions/aws/update-and-deploy-rest-api/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/actions/aws/update-and-deploy-rest-api/action.yml b/actions/aws/update-and-deploy-rest-api/action.yml index eadb6e5..82a4b4a 100644 --- a/actions/aws/update-and-deploy-rest-api/action.yml +++ b/actions/aws/update-and-deploy-rest-api/action.yml @@ -64,6 +64,11 @@ runs: run: | aws apigateway create-deployment --rest-api-id ${{ inputs.APIGW_REST_API_ID }} --stage-name ${{ inputs.APIGW_STAGE_NAME }} --description 'Deploy version ${{ inputs.APIGW_VERSION }} from CICD' + - name: Publish ApiGw doc to stage + shell: bash + run: | + aws apigateway create-documentation-version --rest-api-id ${{ inputs.APIGW_REST_API_ID }} --documentation-version ${{ inputs.APIGW_VERSION }} --stage-name ${{ inputs.APIGW_STAGE_NAME }} --description 'Api documentation version ${{ inputs.APIGW_VERSION }} from CICD' + - name: Export Openapi id: export_openapi shell: bash