From e9c2b94df8f54b99318ba2728331a54c081874b0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 21 Aug 2024 04:34:16 -0600 Subject: [PATCH] feat: add support to wait for stack-delete-complete (#115) --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index d84b1ec..db58b46 100644 --- a/action.yml +++ b/action.yml @@ -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 }}