From 5e3c67ab60be788d984d9ca2fed0092e1a953750 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 15 Feb 2023 20:06:17 -0700 Subject: [PATCH] Fixed the test --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index 1a23798d..e9413794 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -61,7 +61,7 @@ if [[ -z $GITHUB_EVENT_PULL_REQUEST_BASE_REF ]]; then echo "Fetching remote refs..." # shellcheck disable=SC2086 git fetch $EXTRA_ARGS -u --progress --deepen="$INPUT_FETCH_DEPTH" origin +refs/heads/"$CURRENT_BRANCH":refs/remotes/origin/"$CURRENT_BRANCH" 1>/dev/null - git submodule update --recursive || true + git submodule update --init --recursive || true fi echo "::debug::Getting HEAD SHA..."