Adding condition to make sure pro and base commit aren't identical when erroring.
This commit is contained in:
parent
10dc832587
commit
afe81fcf69
|
@ -240,7 +240,7 @@ jobs:
|
||||||
|
|
||||||
any_commit=$(git log --no-merges $base_commit_excluding_merges...$pro_commit)
|
any_commit=$(git log --no-merges $base_commit_excluding_merges...$pro_commit)
|
||||||
|
|
||||||
if [ -n "$any_commit" ]; then
|
if [ -n "$any_commit" ] && [ "$base_commit" != "$pro_commit" ]; then
|
||||||
echo $any_commit
|
echo $any_commit
|
||||||
|
|
||||||
echo "An error occurred: <error_message>"
|
echo "An error occurred: <error_message>"
|
||||||
|
|
Loading…
Reference in New Issue