See GH Actions Commit recipes for more info.

git config --global user.name 'Automated Publisher'
git config --global user.email 'actions@users.noreply.github.com'
git commit -am "Commit message..."

git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push