Skip to content

Commit ea31a79

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Fix build_android by setting git safe folders (facebook#45065)
Summary: Pull Request resolved: facebook#45065 This fix makes sure that Android runner can run git commands. This is porting in main the commit facebook@fee2156 ## Changelog [Internal] - Make the build_android run git commands Reviewed By: cortinico Differential Revision: D58782969 fbshipit-source-id: ab35f7e3d1733ab770f2a397552daa1ec7c13cf7
1 parent 710b0e6 commit ea31a79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ jobs:
515515
- name: Install dependencies
516516
run: yarn install --non-interactive
517517
- name: Set React Native Version
518-
run: node ./scripts/releases/set-rn-version.js --build-type ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
518+
run: |
519+
git config --global --add safe.directory /__w/react-native/react-native
520+
node ./scripts/releases/set-rn-version.js --build-type ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
519521
- name: Setup gradle
520522
uses: ./.github/actions/setup-gradle
521523
- name: Build and publish all the Android Artifacts to /tmp/maven-local

0 commit comments

Comments
 (0)