Skip to content

Commit

Permalink
fix(apigw): publish apigw doc to stage with date
Browse files Browse the repository at this point in the history
  • Loading branch information
JoffreyPlouvier committed Nov 29, 2024
1 parent 8e007aa commit a083684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actions/aws/update-and-deploy-rest-api/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ runs:
- 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'
doc_version="$APIGW-$(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
id: export_openapi
Expand Down

0 comments on commit a083684

Please sign in to comment.