From dd4f15bf084932a62f46a539a7fdfd424374d111 Mon Sep 17 00:00:00 2001 From: m-nakamura145 Date: Mon, 12 Feb 2024 02:12:40 -0800 Subject: [PATCH] chore: Bump actions/checkout (#42952) Summary: GitHub is [planning to upgrade to Node 20](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/). Versions prior to actions/checkout v3 use an outdated version of node, so we will upgrade to actions/checkout v4, where [Node 20 is the default](https://github.com/actions/checkout/releases/tag/v4.0.0). ## Changelog: [INTERNAL] [FIXED] - chore: Bump actions/checkout Pull Request resolved: https://github.com/facebook/react-native/pull/42952 Reviewed By: cipolleschi Differential Revision: D53655117 Pulled By: cortinico fbshipit-source-id: 7c05e6ac2cb71c9d20c0b28b183cada6856f0a2d --- .github/workflows/autorebase.yml | 2 +- .github/workflows/check-for-reproducer.yml | 2 +- .github/workflows/danger_pr.yml | 2 +- .github/workflows/needs-attention.yml | 2 +- .github/workflows/on-issue-labeled.yml | 4 ++-- .github/workflows/run_e2e_tests.yml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autorebase.yml b/.github/workflows/autorebase.yml index f52439bbcb0..62fd97caf1a 100644 --- a/.github/workflows/autorebase.yml +++ b/.github/workflows/autorebase.yml @@ -17,7 +17,7 @@ jobs: if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo diff --git a/.github/workflows/check-for-reproducer.yml b/.github/workflows/check-for-reproducer.yml index 97d841e7e6b..839416620f6 100644 --- a/.github/workflows/check-for-reproducer.yml +++ b/.github/workflows/check-for-reproducer.yml @@ -10,7 +10,7 @@ jobs: if: | github.repository == 'facebook/react-native' && github.event.issue.pull_request == null && github.event.issue.state == 'open' && !contains(github.event.issue.labels.*.name, ':open_umbrella: Umbrella') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/danger_pr.yml b/.github/workflows/danger_pr.yml index 62b8b612fe1..cfde1743524 100644 --- a/.github/workflows/danger_pr.yml +++ b/.github/workflows/danger_pr.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'facebook/react-native' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run Yarn Install on Root run: yarn install working-directory: . diff --git a/.github/workflows/needs-attention.yml b/.github/workflows/needs-attention.yml index 741ece44b4d..a92cf54504a 100644 --- a/.github/workflows/needs-attention.yml +++ b/.github/workflows/needs-attention.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'facebook/react-native' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Apply Needs Attention Label uses: hramos/needs-attention@v1 with: diff --git a/.github/workflows/on-issue-labeled.yml b/.github/workflows/on-issue-labeled.yml index 14f9d4e9c5d..b6172766fa6 100644 --- a/.github/workflows/on-issue-labeled.yml +++ b/.github/workflows/on-issue-labeled.yml @@ -16,7 +16,7 @@ jobs: if: "${{ github.repository == 'facebook/react-native' && contains(github.event.label.name, 'Needs: Triage :mag:') }}" steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Verify RN version uses: actions/github-script@v6 @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'facebook/react-native' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/github-script@v6 with: script: | diff --git a/.github/workflows/run_e2e_tests.yml b/.github/workflows/run_e2e_tests.yml index 7bb84bad321..cf847857227 100644 --- a/.github/workflows/run_e2e_tests.yml +++ b/.github/workflows/run_e2e_tests.yml @@ -16,7 +16,7 @@ jobs: if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '#run-e2e-tests') steps: - name: Checkout the latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 # otherwise, you will fail to push refs to dest repo