On the On-Shell: The Action of AdS$_4$ Black Holes