You need to pull the changes on your local system the github-action made. I think you already know that.
In git there are local hooks, you could create a local pre-commit or local pre-push hook who automatically make a pull before push or commit.
Is it only the date? You could enable Git keyword substitution like those in Subversion? "keyword substitution"