From 65eceb1c557372c55c6e0cb1ab889aec7569e05e Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 26 Oct 2021 09:41:17 -0400 Subject: [PATCH] Revert "Resolved bug with already existing remote (#228)" This reverts commit 3b3a421bef74ff46d22ee06194fad857bc9dfe1d. --- entrypoint.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e3a289510fe..17ea7120fdf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,11 +17,7 @@ fi SERVER_URL=$(echo "$GITHUB_SERVER_URL" | awk -F/ '{print $3}') -git ls-remote temp_changed_files 1>/dev/null 2>&1 && exit_status=$? || exit_status=$? - -if [[ $exit_status -ne 0 ]]; then - git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}" -fi +git remote add temp_changed_files "https://${INPUT_TOKEN}@${SERVER_URL}/${GITHUB_REPOSITORY}" echo "Getting HEAD info..."