From b9ee5cc7c228b8f52193e41178ba5fb4c1d5e323 Mon Sep 17 00:00:00 2001 From: Sai Saran Vaidyanathan Date: Wed, 6 Nov 2024 12:16:03 -0800 Subject: [PATCH] fix: #579 to publish docs --- .github/workflows/gen-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gen-docs.yml b/.github/workflows/gen-docs.yml index 2b8d0170..1f542bbb 100644 --- a/.github/workflows/gen-docs.yml +++ b/.github/workflows/gen-docs.yml @@ -32,8 +32,8 @@ jobs: - name: Push GH Pages run: | git config pull.rebase false - git config --global user.name ${{ github.actor }} - # git config --global user.email "apigeecli-bot@noreply.apigee.com" + git config --global user.name "$(git log -n 1 --pretty=format:%an)" + git config --global user.email "$(git log -n 1 --pretty=format:%ae)" git pull origin main --allow-unrelated-histories git checkout -b docs_$GITHUB_SHA