3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-02-19 05:23:48 +00:00

Update diff-sha.sh

This commit is contained in:
Tonye Jack 2022-12-16 09:43:12 -07:00 committed by GitHub
parent 9bb7d28e70
commit 996300de86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ else
else
echo "::debug::Common ancestor: $COMMON_ANCESTOR"
DATE=$(git log --date=iso8601 --format=%cd "${COMMON_ANCESTOR}")
DATE=$(git log --max-count=1 --date=iso8601 --format=%cd "${COMMON_ANCESTOR}")
if [[ -z "$DATE" ]]; then
echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"