Updated diff-sha.sh
This commit is contained in:
parent
4f38efcb15
commit
61ed208946
@ -79,6 +79,10 @@ if [[ -z $GITHUB_BASE_REF ]]; then
|
||||
echo "::debug::Getting base SHA for '$INPUT_SINCE'..."
|
||||
PREVIOUS_SHA=$(git log --format="%H" --date=local --since="$INPUT_SINCE" --reverse | head -n 1)
|
||||
|
||||
git log --format="%H" --date=local --since="$INPUT_SINCE" --reverse | grep -n "$PREVIOUS_SHA"
|
||||
|
||||
git log --format="%H" --date=local --since="$INPUT_SINCE" --reverse
|
||||
|
||||
if [[ -z "$PREVIOUS_SHA" ]]; then
|
||||
echo "::error::Unable to locate a previous commit for the specified date: $INPUT_SINCE"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user