Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arianvp committed Jun 8, 2024
1 parent e5180a9 commit 186f6f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/push-based-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
status=$(aws ssm list-commands \
--command-id ${{ steps.send-command.outputs.command_id }} \
--query "Commands[0].Status")
# if pending or in progress, or cancelling
if [ "$status" = "Pending" ] || [ "$status" = "InProgress" ] || [ "$status" = "Cancelling" ]; then
tries=$((tries - 1))
echo "Sleeping for 30 seconds to wait for command to finish"
sleep 30
tries=$((tries-1))
sleep 60
continue
else
break
fi
break
done
echo "status=$status" >> "$GITHUB_OUTPUT"
- name: Show details
Expand Down

0 comments on commit 186f6f0

Please sign in to comment.