Spectral action with zeta function regularization