From 97dbb74a69a2632e5ea1684dd4501d85f5d7cee9 Mon Sep 17 00:00:00 2001 From: Alex Velez Date: Wed, 7 Aug 2024 09:07:47 -0500 Subject: [PATCH] Checkout pr head --- .github/workflows/visual_tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/visual_tests.yml b/.github/workflows/visual_tests.yml index a9b9162dd..131497724 100644 --- a/.github/workflows/visual_tests.yml +++ b/.github/workflows/visual_tests.yml @@ -25,7 +25,10 @@ jobs: outputs: percy_url: ${{ steps.extract-url.outputs.percy_url }} steps: - - uses: actions/checkout@v4 + - name: Checkout code from PR + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Use Node.js uses: actions/setup-node@v4 with: