3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-29 03:34:50 +00:00

Fixed test

This commit is contained in:
Tonye Jack 2022-10-30 20:38:35 -06:00
parent 3e2fd5f6b3
commit 39518769ff

View file

@ -115,9 +115,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
fi
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
PARENT_COUNT=$(git show -s --format="%P" "$CURRENT_SHA" | wc -w | xargs)
if [[ "$PARENT_COUNT" == "0" ]]; then
if ! git rev-parse "$PREVIOUS_SHA^1" &>/dev/null; then
INITIAL_COMMIT="true"
PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA")
echo "::warning::Initial commit detected no previous commit found."