Stop committing resources to an external repo (#28963)
This has been integrated into this repo (`builds/facebook-fbsource`) so we no longer need the extra repo
Jon Janzen committed
May 3, 2024 at 11:01 UTC
38cd73b25b0805f7538e29ac2f96ccf749093685
1 file changed
-36
.github/workflows/commit_artifacts.yml
-36
@@ -210,42 +210,6 @@ jobs:
210
commit_user_email: ${{ github.actor }}@users.noreply.github.com
211
create_branch: true
212
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
-
213
commit_fbsource_artifacts:
214
needs: download_artifacts
215
if: ${{ (github.ref == 'refs/heads/main' && needs.download_artifacts.outputs.fbsource_branch_count == '0') || github.ref == 'refs/heads/meta-fbsource' }}