Capillary action only works with glass tubes?
Few things in chemistry are truly unique. The tube does not have to be glass; it only has to be wettable, which glass typically is and plastic typically isn't.

In the tubes made of non-wettable materials, capillary action works the other way: the liquid will go down rather than up, akin to Hg on the picture provided.

 (source)

So it goes.