Skip to content

Commit 8e52fe2

Browse files
Fix setting of identity for commenting patch
1 parent 1a86b44 commit 8e52fe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/create-patch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
fetch-depth: 0
1616
- name: Create Patch
1717
run: |
18+
git config user.email "$AUTHOR_EMAIL"
19+
git config user.name "$AUTHOR_NAME"
1820
git rev-parse --abbrev-ref HEAD > .branch-name
1921
git checkout develop
2022
git checkout -b patch
2123
git merge --squash `cat .branch-name`
22-
git config --global user.email "$AUTHOR_EMAIL"
23-
git config --global user.name "$AUTHOR_NAME"
2424
git commit -m "Patch for `cat .branch-name`"
2525
PATCH_FILE=`cat .branch-name | sed 's/\//_/g'`.patch # Replace forward slash in branch name with _
2626
git format-patch develop..HEAD --stdout -k > $PATCH_FILE

0 commit comments

Comments
 (0)