From fafea853e8a6a0a728c7244a91dc5facc66d0a0a Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sun, 13 Dec 2020 09:22:38 +0100 Subject: [PATCH] Set depth on git-fetch --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 73c36d4..42eadba 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -41,7 +41,7 @@ _switch_to_branch() { echo "INPUT_BRANCH value: $INPUT_BRANCH"; # Fetch remote to make sure that repo can be switched to the right branch. - git fetch; + git fetch --depth=3; # Switch to branch from current Workflow run # shellcheck disable=SC2086