chore: Update the exit status when

This commit is contained in:
Tonye Jack 2022-05-14 02:35:56 -04:00 committed by GitHub
parent 1d44b6d930
commit 931aafa079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
if [[ $(git rev-list --count HEAD) -gt 1 ]]; then
PREVIOUS_SHA=$(git rev-list --no-merges -n 1 HEAD^1 2>&1) && exit_status=$? || exit_status=$?
else
PREVIOUS_SHA=$CURRENT_SHA
PREVIOUS_SHA=$CURRENT_SHA && exit_status=$? || exit_status=$?
echo "Initial commit detected"
fi
else