Skip to content

Commit

Permalink
feat: add support to wait for stack-delete-complete (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Aug 21, 2024
1 parent 7c69ee7 commit e9c2b94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ runs:
echo "${{ steps.check.outputs.stack_name }} create complete"
shell: bash

- name: Wait for stack delete-complete
working-directory: ${{ inputs.working_dir }}
if: steps.check.outputs.stack_status == 'DELETE_IN_PROGRESS'
run: |
echo "Waiting for "${{ steps.check.outputs.stack_name }}" to complete deleting..."
aws cloudformation wait stack-delete-complete --stack-name "${{ steps.check.outputs.stack_name }}" 2>/dev/null || true
echo "${{ steps.check.outputs.stack_name }} delete complete"
shell: bash

- name: Run aws-cdk
id: aws-cdk
working-directory: ${{ inputs.working_dir }}
Expand Down

0 comments on commit e9c2b94

Please sign in to comment.