Well Gauss Bonnet is $$\int_M K\;dA+\int_{\partial M}k_g\;ds=2\pi\chi(M)$$
Full GR action is $$\mathcal{S}_\mathrm{EH} + \mathcal{S}_\mathrm{GHY} = \frac{1}{16 \pi} \int_\mathcal{M} \mathrm{d}^4 x \, \sqrt{-g} R + \frac{1}{8 \pi} \int_{\partial \mathcal{M}} \mathrm{d}^3 y \, \epsilon \sqrt{h}K$$
@Slereah Theorem 3 here says that every surface is obtained by removing points from the sphere, then removing discs from the remnant, and then pairwise gluing the boundaries of those discs together