From 2405ae6c59e4bcea355fc8bca67e86e80db2ea3d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 13 Dec 2022 14:13:22 -0700 Subject: [PATCH] Updated the current sha --- diff-sha.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/diff-sha.sh b/diff-sha.sh index d2e1bbb1..e11d3e3f 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -203,6 +203,10 @@ else CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? else CURRENT_SHA=$INPUT_SHA; exit_status=$? + + if [[ "$CURRENT_SHA" == "$GITHUB_EVENT_PULL_REQUEST_HEAD_SHA" ]]; then + CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? + fi fi fi