From 653adcf614c1eb5bb08d37bba3b59415b74e5ad4 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 19 Jan 2023 14:11:25 -0700 Subject: [PATCH] fix: revert change to pull pr branch via the branch name (#958) --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 0296c886..8babc4ed 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -166,7 +166,7 @@ else if [[ -f .git/shallow ]]; then echo "Fetching remote refs..." # shellcheck disable=SC2086 - git fetch $EXTRA_ARGS -u --progress --deepen="$INPUT_FETCH_DEPTH" origin "$CURRENT_BRANCH" 1>/dev/null + git fetch $EXTRA_ARGS -u --progress origin pull/"$GITHUB_EVENT_PULL_REQUEST_NUMBER"/head:"$CURRENT_BRANCH" 1>/dev/null if [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" != "true" ]]; then echo "::debug::Fetching remote target branch..."