diff --git a/actions/aws/update-and-deploy-rest-api/action.yml b/actions/aws/update-and-deploy-rest-api/action.yml index c9e94b8..1a32e77 100644 --- a/actions/aws/update-and-deploy-rest-api/action.yml +++ b/actions/aws/update-and-deploy-rest-api/action.yml @@ -67,7 +67,7 @@ runs: - name: Publish ApiGw doc to stage shell: bash run: | - doc_version="$APIGW-$(date "+%Y%m%d-%H%M%S")" + doc_version="${{ inputs.APIGW_VERSION }}-$(date "+%Y%m%d-%H%M%S")" aws apigateway create-documentation-version --rest-api-id ${{ inputs.APIGW_REST_API_ID }} --documentation-version $doc_version --stage-name ${{ inputs.APIGW_STAGE_NAME }} --description 'Api documentation version ${{ inputs.APIGW_VERSION }} from CICD' - name: Export Openapi