mirror of
https://github.com/facebook/react-native.git
synced 2026-04-01 07:08:03 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42744 This adds a nightlies-feedback workflow, which our partners can get permission to mirror the results of their nightlies CI workflows. We do this to use our internal tools that are restricted to Meta owned Github projects. The benefit to partners is that they can add this step to their workflow: ``` - if: ${{ success() || failure() }} env: OUTCOME: ${{ contains(steps.*.conclusion, 'failure') && 'fail' || 'pass' }} run: | curl -X POST \ -H "Accept: application/vnd.github.v3+json" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ https://api.github.com/repos/facebook/react-native/actions/workflows/nightlies-feedback.yml/dispatches \ -d "$(printf '{"ref":"main","inputs":{"outcome":"%s","stage":"needs_an_action","link":"http://github.com/some/action","version":"%s"}}' "$OUTCOME" "${{ inputs.version }}" )" ``` ### Feedback: It's complicated, but there are ways to simplify this for our users. I'd like to prove out that it's valuable first with Expo. ### Limits: There's certainly a lot of room for improvement, which we could provide with a published action (populate the ref correctly, simplify gathering the outcome, labelling of failing step correctly, etc...). ### Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D53229996 fbshipit-source-id: 10e4ba5b5fd85935b1b03aaafa41ef8b96d2faca