Skip to content

Commit a0cf55c

Browse files
Update .github/workflows/AUTO-VERSION.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5490dd0 commit a0cf55c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/AUTO-VERSION.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ jobs:
6161
echo "$MERGED_BRANCHES"
6262
6363
# Also check commit messages for manual detection
64-
COMMIT_MESSAGES=$(git log ${LATEST_TAG}..HEAD --pretty=format:"%s" --max-count=50 || git log --pretty=format:"%s" --max-count=50)
64+
COMMIT_MESSAGES=$(git log ${LATEST_TAG}..HEAD --pretty=format:"%s" --max-count=50)
65+
if [ $? -ne 0 ]; then
66+
echo "Error: Failed to retrieve commit messages for range ${LATEST_TAG}..HEAD" >&2
67+
exit 1
68+
fi
6569
echo "Commit messages:"
6670
echo "$COMMIT_MESSAGES"
6771

0 commit comments

Comments
 (0)