From d9881ac05aae85f34ca4bfb58ca025c4303380d5 Mon Sep 17 00:00:00 2001 From: rory Date: Mon, 19 Aug 2024 17:25:38 -0400 Subject: [PATCH] Faster checkout in test builds --- .github/workflows/testBuild.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/testBuild.yml b/.github/workflows/testBuild.yml index da4225f0e4be..5de11ba40a59 100644 --- a/.github/workflows/testBuild.yml +++ b/.github/workflows/testBuild.yml @@ -54,8 +54,7 @@ jobs: id: getHeadRef run: | set -e - gh pr checkout ${{ github.event.inputs.PULL_REQUEST_NUMBER }} - echo "REF=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" + echo "REF=$(gh pr view ${{ github.event.inputs.PULL_REQUEST_NUMBER }} --json headRefOid --jq '.headRefOid')" >> "$GITHUB_OUTPUT" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}