From 5c3e70f794d4c928460daf621eff608f477c2510 Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Tue, 30 May 2023 15:55:31 -0500 Subject: [PATCH] Fix non-existent commit reference (#67) Fixes the bug regression described in #66 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4eda4df..4441b7e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -77,7 +77,7 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then base_sha=$(git rev-parse "refs/remotes/origin/${GITHUB_BASE_REF}") head_sha=$(git rev-list --no-merges -n 1 refs/remotes/pull/${GITHUB_REF_NAME}) - command+=$(arg '--log-opts "%s"' "--no-merges --first-parent ${base_sha}^..${head_sha}") + command+=$(arg '--log-opts "%s"' "--no-merges --first-parent ${base_sha}...${head_sha}") else command+=$(arg '--source %s' "${INPUT_SOURCE}") command+=$(arg '--no-git' "${INPUT_NO_GIT}")