Skip to content

Commit

Permalink
Updated diff-sha.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Oct 15, 2022
1 parent 4f38efc commit 61ed208
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions diff-sha.sh
Expand Up @@ -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
Expand Down

0 comments on commit 61ed208

Please sign in to comment.