diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index 414e949..b8df157 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -25,12 +25,12 @@ else echo " unity-editor $DEFAULT_ARGS $COMMAND" unity-editor $DEFAULT_ARGS $COMMAND fi -#RESULT=$? -#echo "Unity command exited with code: $RESULT" +RESULT=$? +echo "Unity command exited with code: $RESULT" echo "::endgroup::" -#echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" +echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT" -# if [[ "$CATCH_ERRORS" != "true" ]]; then -# exit $RESULT -# fi +if [[ "$CATCH_ERRORS" != "true" ]]; then + exit $RESULT +fi