Skip to content

Commit f6a9895

Browse files
committed
ci: add fake identity to avoid merge error
1 parent b44a572 commit f6a9895

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ jobs:
8484
git remote add forkUpstream https://github.com/$REPO_NAME # URL of the fork
8585
git fetch forkUpstream # Fetch fork
8686
87+
# Because `git merge` makes a commit, we need to establish an identity to avoid 'Committer identity unknown' error
8788
- name: Merge in target branch to avoid false negatives.
8889
env:
8990
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
9091
run: |
92+
git config --global user.email "[email protected]"
93+
git config --global user.name "ci"
9194
git merge origin/$TARGET_BRANCH
9295
9396
- name: Compute git diff

0 commit comments

Comments
 (0)