Skip to content

Commit

Permalink
Merge pull request #556 from bstansberry/Issue_549
Browse files Browse the repository at this point in the history
[Issue_49] Establish identity before merging
  • Loading branch information
bstansberry authored Feb 29, 2024
2 parents ef681c3 + 207a2ae commit 4583f40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update_post_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 4583f40

Please sign in to comment.