Output clearer action result message

This commit is contained in:
Peter Evans 2020-08-02 17:26:51 +09:00
parent 382a87f452
commit 10e602777f

View file

@ -43,7 +43,9 @@ RESPONSE_CODE=$(curl -s --write-out %{response_code} --output /dev/null -H "Auth
echo "Received response code: $RESPONSE_CODE" echo "Received response code: $RESPONSE_CODE"
if [ $RESPONSE_CODE -eq 200 ]; then if [ $RESPONSE_CODE -eq 200 ]; then
echo "Request successful"
exit 0 exit 0
else else
echo "Request failed"
exit 1 exit 1
fi fi