Fix diff-js-api-changes CI job (#54900)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54900

Another attempt at fixing the failing `danger` job in GitHub Actions.

**Changes**

- Update `danger-pr` workflow to check out the Pull Request branch.
- Use `git fetch --deepen` in `diff-js-api-changes` job to fix computing PR merge base.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D89287799

fbshipit-source-id: 45708d3c051c60f8134c96b54cb2b13b93afa8dc
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2025-12-16 08:14:38 -08:00
1 parent 1e1a81f70f
commit 498514d12e
2 files changed
+11 -13

No files matched your search

+4 -1
View File
@@ -17,7 +17,10 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'facebook/react-native'
steps:
- uses: actions/checkout@v6
- name: Check out PR branch
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Run yarn install