From d352a9979d205e92fc0b832ed30f60427ae428f8 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 6 Nov 2024 04:07:13 -0800 Subject: [PATCH] Add checkout step to check nightly (#47448) 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 --- .github/workflows/check-nightly.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-nightly.yml b/.github/workflows/check-nightly.yml index 2534de48823..95974e96570 100644 --- a/.github/workflows/check-nightly.yml +++ b/.github/workflows/check-nightly.yml @@ -13,6 +13,8 @@ jobs: 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") @@ -24,5 +26,7 @@ jobs: else echo 'Nightly Worked, All Good!' fi - - name: Test Libraries - uses: ./.github/workflows/test-libraries-on-nightlies.yml + + test-libraries: + uses: ./.github/workflows/test-libraries-on-nightlies.yml + needs: check-nightly