Updated determining the remote sha
This commit is contained in:
parent
3d7cff9835
commit
bc7fa5e550
@ -70,8 +70,12 @@ if [[ -z $GITHUB_BASE_REF ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
|
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
|
||||||
INITIAL_COMMIT="true"
|
PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA^1")
|
||||||
echo "::debug::Initial commit detected"
|
|
||||||
|
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
|
||||||
|
INITIAL_COMMIT="true"
|
||||||
|
echo "::debug::Initial commit detected"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
PREVIOUS_SHA=$INPUT_BASE_SHA
|
PREVIOUS_SHA=$INPUT_BASE_SHA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user