In any action brought upon either of the bonds provided herein, or against the public body failing to obtain the delivery of the payment bond, the prevailing party, upon each separate cause of action, shall recover a reasonable attorney’s fee to be taxed as costs.