From a7a95593d4a2b74900032bf0e4a05cd4db407495 Mon Sep 17 00:00:00 2001 From: Alex Pickering Date: Mon, 14 Aug 2023 14:11:48 -0700 Subject: [PATCH] fix checkout Signed-off-by: Alex Pickering --- .github/workflows/ci.yaml | 9 +++++++++ .github/workflows/nextjs_bundle_analysis.yaml | 3 +++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 85ea64b270..f9a0d63d9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -91,6 +91,9 @@ jobs: - id: checkout name: Check out source code uses: actions/checkout@v3 + with: + ref: ${{github.head_ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - id: setup-node uses: actions/setup-node@v3 @@ -163,6 +166,9 @@ jobs: - id: checkout name: Check out source code uses: actions/checkout@v3 + with: + ref: ${{github.head_ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - id: download-build-out name: Download Next.js build output @@ -272,6 +278,9 @@ jobs: - id: checkout name: Check out source code uses: actions/checkout@v3 + with: + ref: ${{github.head_ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - id: setup-aws name: Configure AWS credentials diff --git a/.github/workflows/nextjs_bundle_analysis.yaml b/.github/workflows/nextjs_bundle_analysis.yaml index 5d044add54..43e8f458df 100644 --- a/.github/workflows/nextjs_bundle_analysis.yaml +++ b/.github/workflows/nextjs_bundle_analysis.yaml @@ -23,6 +23,9 @@ jobs: - id: checkout name: Check out source code uses: actions/checkout@v3 + with: + ref: ${{github.head_ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - id: setup-node uses: actions/setup-node@v3