We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5490dd0 commit a0cf55cCopy full SHA for a0cf55c
.github/workflows/AUTO-VERSION.yml
@@ -61,7 +61,11 @@ jobs:
61
echo "$MERGED_BRANCHES"
62
63
# 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)
+ 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
69
echo "Commit messages:"
70
echo "$COMMIT_MESSAGES"
71
0 commit comments