From 3c4becd315288285b23f2de8901d57dc1b8e9041 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sun, 30 Oct 2022 21:52:09 -0600 Subject: [PATCH] chore: fix detecting changes with the first PR commit --- diff-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-sha.sh b/diff-sha.sh index ebde426c..f2ba2b87 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -111,7 +111,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then fi if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "0000000000000000000000000000000000000000" ]]; then - PREVIOUS_SHA=$CURRENT_SHA + PREVIOUS_SHA=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1 | xargs)") fi if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then