mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
37d1e8e7a0
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45480 We currently use the default GITHUB_ACTION which makes a lot of interaction appear as user "GitHub Actions". Instead we could use the `REACT_NATIVE_BOT_GITHUB_TOKEN` which we have as secret so the bot will actually perform the actions. Changelog: [Internal] [Changed] - Act as react-native-bot on all the actions Reviewed By: cipolleschi Differential Revision: D59815201 fbshipit-source-id: 702b121ec07d0db10abf25e23f7ddf5658dd5d62
29 lines
691 B
YAML
29 lines
691 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 on Root
|
|
run: yarn install
|
|
working-directory: .
|
|
- 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 }}
|