mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b345cecaaa
Summary: This centralizes the invocation of yarn install to be via the `actions/yarn-install`. It will make it easier to add a retry if we want for all the `yarn install` steps in all the workflows. ## Changelog: [INTERNAL] - Pull Request resolved: https://github.com/facebook/react-native/pull/49174 Test Plan: CI Reviewed By: NickGerleman Differential Revision: D69121525 Pulled By: cortinico fbshipit-source-id: 135da2e172cdf95b2a0ef8fd3d25996ab9317167
28 lines
673 B
YAML
28 lines
673 B
YAML
name: Run Danger on PR
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
|
|
permissions:
|
|
actions: write
|
|
checks: write
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
statuses: write
|
|
|
|
jobs:
|
|
danger:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run yarn install
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Danger
|
|
run: yarn danger ci --use-github-checks --failOnErrors
|
|
working-directory: packages/react-native-bots
|
|
env:
|
|
DANGER_GITHUB_API_TOKEN: ${{ secrets.REACT_NATIVE_BOT_GITHUB_TOKEN }}
|