The Action Of A Causal Set