mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
Update diff-sha.sh
This commit is contained in:
parent
9bb7d28e70
commit
996300de86
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ else
|
||||||
else
|
else
|
||||||
echo "::debug::Common ancestor: $COMMON_ANCESTOR"
|
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
|
if [[ -z "$DATE" ]]; then
|
||||||
echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"
|
echo "::error::Unable to locate a date for the common ancestor: $COMMON_ANCESTOR"
|
||||||
|
|
Loading…
Add table
Reference in a new issue