Added exit codes back.

This commit is contained in:
2025-06-28 00:28:19 -07:00
parent 8757c36d64
commit 94c9f7e6a2

View File

@@ -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