The comment I was replying to seemed to have the idea that `git hooks` could replace actions. Maybe I just read too much into it.
You probably could use server-side git hooks just fine as an alternative if you self host the repo though, but I would assume if you are using github, or another hosting service, their tools are probably best/easiest/most convenient for their own platform.