mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d352a9979d
Summary: In order to use a reusable workflow in GHA, we need first to checkout the repository so the action has access to the other workflows. ## Changelog: [Internal] - Add checkout step to Check Nightlies Pull Request resolved: https://github.com/facebook/react-native/pull/47448 Test Plan: GHA - https://github.com/facebook/react-native/actions/runs/11702038686?pr=47448 Reviewed By: cortinico Differential Revision: D65532274 Pulled By: cipolleschi fbshipit-source-id: 58117ac81973e3c07829d73d5bde4e6fd4d212f9
33 lines
939 B
YAML
33 lines
939 B
YAML
# This jobs runs every day 2 hours after the nightly job and its purpose is to report
|
|
# a failure in case the nightly failed to be published. We are going to hook this to an internal automation.
|
|
name: Check Nigthlies
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# nightly build @ 4:15 AM UTC
|
|
schedule:
|
|
- cron: '15 4 * * *'
|
|
|
|
jobs:
|
|
check-nightly:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Check nightly
|
|
run: |
|
|
TODAY=$(date "+%Y%m%d")
|
|
echo "Checking nightly for $TODAY"
|
|
NIGHTLY="$(npm view react-native | grep $TODAY)"
|
|
if [[ -z $NIGHTLY ]]; then
|
|
echo 'Nightly job failed.'
|
|
exit 1
|
|
else
|
|
echo 'Nightly Worked, All Good!'
|
|
fi
|
|
|
|
test-libraries:
|
|
uses: ./.github/workflows/test-libraries-on-nightlies.yml
|
|
needs: check-nightly
|