From 8e52fe20a69223582a7ae30098684974b9d7d902 Mon Sep 17 00:00:00 2001 From: Kevin Fischer Date: Fri, 5 Feb 2021 17:52:52 +0900 Subject: [PATCH] Fix setting of identity for commenting patch --- .github/workflows/create-patch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-patch.yml b/.github/workflows/create-patch.yml index c1e2b6bd02..87acdd8e8c 100644 --- a/.github/workflows/create-patch.yml +++ b/.github/workflows/create-patch.yml @@ -15,12 +15,12 @@ jobs: fetch-depth: 0 - name: Create Patch run: | + git config user.email "$AUTHOR_EMAIL" + git config user.name "$AUTHOR_NAME" git rev-parse --abbrev-ref HEAD > .branch-name git checkout develop git checkout -b patch git merge --squash `cat .branch-name` - git config --global user.email "$AUTHOR_EMAIL" - git config --global user.name "$AUTHOR_NAME" git commit -m "Patch for `cat .branch-name`" PATCH_FILE=`cat .branch-name | sed 's/\//_/g'`.patch # Replace forward slash in branch name with _ git format-patch develop..HEAD --stdout -k > $PATCH_FILE