From ed9a8c623ca109cec468466356dd6df1e4188149 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 3 Nov 2022 20:12:34 -0600 Subject: [PATCH] feat: include merge commit for push events --- diff-sha.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index e825d46e..2dfd12c6 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -54,7 +54,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then fi else if [[ -z $INPUT_SHA ]]; then - CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? + CURRENT_SHA=$(git rev-list -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? else git fetch --no-tags -u --progress --deepen="$INPUT_FETCH_DEPTH" CURRENT_SHA=$INPUT_SHA; exit_status=$? @@ -83,7 +83,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then fi else git fetch --no-tags -u --progress --deepen="$INPUT_FETCH_DEPTH" - PREVIOUS_SHA=$(git rev-list --no-merges -n 1 "$TARGET_BRANCH" 2>&1) && exit_status=$? || exit_status=$? + PREVIOUS_SHA=$(git rev-list -n 1 "$TARGET_BRANCH" 2>&1) && exit_status=$? || exit_status=$? if [[ -z "$PREVIOUS_SHA" ]]; then if [[ "$GITHUB_EVENT_FORCED" == "false" || -z "$GITHUB_EVENT_FORCED" ]]; then