Skip to content

Commit

Permalink
Merge pull request #24 from gselva/fix/merge_action_unknown_status
Browse files Browse the repository at this point in the history
  • Loading branch information
jonico authored Jan 7, 2023
2 parents c639c85 + 97dff4d commit 23aa40a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function wait_for_deploy_request_merged {
fi
local output=`echo $raw_output | jq ".[] | select(.number == $number) | .deployment.state"`
# test whether output is pending, if so, increase wait timeout exponentially
if [ "$output" = "\"pending\"" ] || [ "$output" = "\"in_progress\"" ]; then
if [ "$output" = "\"pending\"" ] || [ "$output" = "\"in_progress\"" ] || [ "$output" = "\"submitting\"" ]; then
# increase wait variable exponentially but only if it is less than max_timeout
if [ $((wait * 2)) -le $max_timeout ]; then
wait=$((wait * 2))
Expand Down

0 comments on commit 23aa40a

Please sign in to comment.