Skip to content

Commit e04bbf0

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Fix E2E Tests by configuring git (#53357)
Summary: E2E tests on iOS started failing yesterday because of some permission model that has changed in Github. When creating a new app from the template, we initialize a git repository. The initialization started failing with the error: ``` debug Could not create an empty Git repository, error: , Error: Command failed with exit code 128: git commit -m Initial commit Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'runner@sat12-jr314_3f88162a-0f3d-4d26-80dc-58f431cca4c6-9A2607311B51.(none)') ``` This change fixes it by setting a default identity for git in the CI jobs that requires it. ## Changelog: [Internal] - Pull Request resolved: #53357 Test Plan: GHA Reviewed By: cortinico Differential Revision: D80612345 Pulled By: cipolleschi fbshipit-source-id: 85816057d910ed3619c5f683fdad724c3df8046b
1 parent 78f0899 commit e04bbf0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test-all.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ jobs:
246246
- name: Print ReactCore folder
247247
shell: bash
248248
run: ls -lR /tmp/ReactCore
249+
- name: Configure git
250+
shell: bash
251+
run: |
252+
git config --global user.email "react-native-bot@meta.com"
253+
git config --global user.name "React Native Bot"
249254
- name: Prepare artifacts
250255
run: |
251256
REACT_NATIVE_PKG=$(find /tmp/react-native-tmp -type f -name "*.tgz")

0 commit comments

Comments
 (0)