chore: fix detecting changes with the first PR commit
This commit is contained in:
parent
e793a5d902
commit
3c4becd315
@ -111,7 +111,7 @@ if [[ -z $GITHUB_BASE_REF ]]; then
|
||||
fi
|
||||
|
||||
if [[ -z "$PREVIOUS_SHA" || "$PREVIOUS_SHA" == "0000000000000000000000000000000000000000" ]]; then
|
||||
PREVIOUS_SHA=$CURRENT_SHA
|
||||
PREVIOUS_SHA=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1 | xargs)")
|
||||
fi
|
||||
|
||||
if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user