3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-17 03:47:20 +00:00

add debug message.

This commit is contained in:
Tonye Jack 2022-09-02 15:20:06 -06:00
parent 52a83d3ef3
commit 4472745cf1

View file

@ -45,6 +45,7 @@ else
CURRENT_SHA=$INPUT_SHA; exit_status=$?
fi
echo "Verifying the commit SHA: $CURRENT_SHA"
git rev-parse --quiet --verify "$CURRENT_SHA^{commit}" 1>/dev/null 2>&1; exit_status=$?
if [[ $exit_status -ne 0 ]]; then
@ -80,6 +81,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
echo "::debug::Target branch: $TARGET_BRANCH"
fi
echo "Verifying the commit SHA: $PREVIOUS_SHA"
git rev-parse --quiet --verify "$PREVIOUS_SHA^{commit}" 1>/dev/null 2>&1; exit_status=$?
if [[ $exit_status -ne 0 ]]; then