@@ -210,42 +210,6 @@ jobs:
210210 commit_user_email : ${{ github.actor }}@users.noreply.github.com
211211 create_branch : true
212212
213- commit_fbsource_artifacts_external_repo :
214- needs : download_artifacts
215- runs-on : ubuntu-latest
216- if : ${{ (github.ref == 'refs/heads/main' && needs.download_artifacts.outputs.fbsource_branch_count == '0') || github.ref == 'refs/heads/meta-fbsource' }}
217- steps :
218- - uses : actions/checkout@v4
219- with :
220- ref : main
221- repository : facebook/react-fbsource-import
222- token : ${{secrets.FBSOURCE_SYNC_PUSH_TOKEN}}
223- - name : Ensure clean directory
224- run : rm -rf compiled-rn
225- - uses : actions/download-artifact@v3
226- with :
227- name : compiled-rn
228- path : compiled-rn/
229- - run : git status -u
230- - name : Check if only the REVISION file has changed
231- id : check_should_commit
232- run : |
233- if git status --porcelain | grep -qv '/REVISION$'; then
234- echo "should_commit=true" >> "$GITHUB_OUTPUT"
235- else
236- echo "should_commit=false" >> "$GITHUB_OUTPUT"
237- fi
238- - name : Commit changes to branch
239- if : steps.check_should_commit.outputs.should_commit == 'true'
240- uses : stefanzweifel/git-auto-commit-action@v4
241- with :
242- commit_message : |
243- ${{ github.event.head_commit.message }}
244-
245- DiffTrain build for commit https://github.com/facebook/react/commit/${{ github.sha }}.
246- commit_user_name : ${{ github.actor }}
247- commit_user_email : ${{ github.actor }}@users.noreply.github.com
248-
249213 commit_fbsource_artifacts :
250214 needs : download_artifacts
251215 if : ${{ (github.ref == 'refs/heads/main' && needs.download_artifacts.outputs.fbsource_branch_count == '0') || github.ref == 'refs/heads/meta-fbsource' }}
0 commit comments