Skip to content

Commit

Permalink
added safeguard for when curl returns error code 0, but response was …
Browse files Browse the repository at this point in the history
…not 204
  • Loading branch information
Benedict Homuth committed Jun 18, 2024
1 parent 25e850a commit 9f46293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/deployment_health_check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ runs:
if [ $response != "204" ]; then
echo "::error::Cluster is not responding after $max_retries attempts. URL: ${{ inputs.HEALTH_URL }}"
if [ $lastCurlExitCode == "0"]
exit 1 # when for some reason curl returned error code 0
if
exit $((lastCurlExitCode))
fi
shell: bash

0 comments on commit 9f46293

Please sign in to comment.