mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 03:47:20 +00:00
Updated diff-sha.sh
This commit is contained in:
parent
4f38efcb15
commit
61ed208946
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue