Skip to content

Commit

Permalink
fix: internal-request script should fail on IR failure
Browse files Browse the repository at this point in the history
This PR fixes the script to make it check if the InternalRequest
has Succeeded or not and exit accordingly.
Signed-off-by: Leandro Mendes <[email protected]>
  • Loading branch information
theflockers committed Sep 19, 2023
1 parent b198ed7 commit c8b1ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/internal-request
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if [ "$SYNC" = "true" ]; then
CONDITION_REASON=$(echo "$CONDITIONS" | jq -r '.[0].reason')
if [ "$CONDITION_REASON" != "Running" ]; then
echo "InternalRequest completed."
exit 0
[ "${CONDITION_REASON}" == "Succeeded" ]; exit $?
fi
fi
fi
Expand Down

0 comments on commit c8b1ab0

Please sign in to comment.