From 02c995141e6b4c7382c598175282f60b93b6b352 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 2 Oct 2022 06:29:15 -0600 Subject: [PATCH] chore: fix bug with base sha --- get-base-sha.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/get-base-sha.sh b/get-base-sha.sh index 32bb61cb..b80a961d 100644 --- a/get-base-sha.sh +++ b/get-base-sha.sh @@ -21,18 +21,4 @@ if [[ -n "$INPUT_SINCE" ]]; then echo "::set-output name=base_sha::$BASE_SHA" elif [[ -n "$INPUT_BASE_SHA" ]]; then echo "::set-output name=base_sha::$INPUT_BASE_SHA" -elif [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "true" ]]; then - LAST_REMOTE_COMMIT="" - - if [[ "$GITHUB_EVENT_FORCED" == "false" ]]; then - LAST_REMOTE_COMMIT=$GITHUB_EVENT_BEFORE - fi - - if [[ -z "$LAST_REMOTE_COMMIT" || "$LAST_REMOTE_COMMIT" == "0000000000000000000000000000000000000000" ]]; then - LAST_REMOTE_COMMIT=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1 | xargs)") - fi - if [[ "$INPUT_SHA" == "$LAST_REMOTE_COMMIT" ]]; then - LAST_REMOTE_COMMIT=$(git rev-parse "$INPUT_SHA"^1) - fi - echo "::set-output name=base_sha::$LAST_REMOTE_COMMIT" fi