From 207a2ae1f10b9faaf3ad54b321410b6add1f425f Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Thu, 29 Feb 2024 12:56:56 -0600 Subject: [PATCH] [Issue_49] Establish identity before merging --- .github/workflows/update_post_merge.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_post_merge.yml b/.github/workflows/update_post_merge.yml index eafcd1cb..fd8bad10 100644 --- a/.github/workflows/update_post_merge.yml +++ b/.github/workflows/update_post_merge.yml @@ -55,6 +55,9 @@ jobs: echo "Creating a new branch: " git checkout -b "${FIX_BRANCH_NAME}" + git config --global user.name "${COMMIT_USERNAME}" + git config --global user.email "${COMMIT_EMAIL}" + if [ "${ORIGINAL_PR}" != '' ]; then # Issue_549 Merge main into FIX_BRANCH_NAME to avoid permission issues if main # includes .github/workflows changes that are not in the PR branch @@ -74,8 +77,6 @@ jobs: git mv _posts/${OLD_POST} _posts/${NEW_POST} echo "Committing changes and creating update PR" - git config --global user.name "${COMMIT_USERNAME}" - git config --global user.email "${COMMIT_EMAIL}" readonly COMMIT_MESSAGE="Update ${OLD_POST} blog date" git commit -am "${COMMIT_MESSAGE}"