From e2bb33a27822b8b64f97aac376526aa1c947f469 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 3 Nov 2022 11:04:53 -0600 Subject: [PATCH] Updated debug message. --- diff-sha.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index 5b3661fa..a7e42534 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -61,7 +61,7 @@ git rev-parse --quiet --verify "$CURRENT_SHA^{commit}" 1>/dev/null 2>&1 && exit_ if [[ $exit_status -ne 0 ]]; then echo "::error::Unable to locate the current sha: $CURRENT_SHA" - echo "::error::You seem to be missing 'fetch-depth: 0' or 'fetch-depth: 2'. See https://github.com/tj-actions/changed-files#usage" + echo "::error::Please verify that current sha is valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." exit 1 else echo "::debug::Current SHA: $CURRENT_SHA" @@ -125,7 +125,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then if [[ $exit_status -ne 0 ]]; then echo "::error::Unable to locate the previous sha: $PREVIOUS_SHA" - echo "::error::Please verify that both commit are valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." + echo "::error::Please verify that the previous sha commit is valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." exit 1 fi else @@ -156,14 +156,14 @@ else if [[ $exit_status -ne 0 ]]; then echo "::error::Unable to locate the previous sha: $PREVIOUS_SHA" - echo "::error::Please verify that both commit are valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." + echo "::error::Please verify that the previous sha is valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." exit 1 fi fi if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" && "$INITIAL_COMMIT" == "false" ]]; then echo "::error::Similar commit hashes detected: previous sha: $PREVIOUS_SHA is equivalent to the current sha: $CURRENT_SHA." - echo "::error::Please verify that both commit are valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." + echo "::error::Please verify that both commits are valid, and increase the fetch_depth to a number higher than $INPUT_INPUT_FETCH_DEPTH." exit 1 fi