From 309c6d1ed0c8c77393bbfe7ddf6e15751b79c21d Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Thu, 26 Nov 2020 20:53:28 +0800 Subject: [PATCH] :construction_worker: update user info for pr --- .github/workflows/upload_docs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload_docs.yml b/.github/workflows/upload_docs.yml index d20c3677..5b306c01 100644 --- a/.github/workflows/upload_docs.yml +++ b/.github/workflows/upload_docs.yml @@ -24,10 +24,12 @@ jobs: - env: REF: ${{ github.event.workflow_run.head_branch }} + PR_REPO: ${{ github.event.workflow_run.head_repository.full_name }} + PR_USER: ${{ github.event.workflow_run.head_repository.owner.login }} run: | - git config user.name GitHub - git config user.email noreply@github.com + git config user.name $PR_USER + git config user.email $PR_USER@users.noreply.github.com git add . git diff-index --quiet HEAD || git commit -m ":memo: update api docs" - git remote add target "https://github.com/${{ github.event.workflow_run.head_repository.full_name }}.git" + git remote add target https://github.com/$PR_REPO.git git push target HEAD:$REF