Currently, the gh-pages commit is taking the author, sha and email from the head commit from the gh-pages.
Fixup this to take from the head commit from the main branch (considering the workflow only runs on push to main).
Please note that GITHUB_SHA takes different values depending on the run context:
push: current branch head commit sha
pull_request: temporary merge commit sha
But since the workflow only runs on push to main, that is not an issue.
Currently, the gh-pages commit is taking the author, sha and email from the head commit from the gh-pages. Fixup this to take from the head commit from the main branch (considering the workflow only runs on push to main). Please note that GITHUB_SHA takes different values depending on the run context: