diff --git a/scripts/bump-astrolabe.sh b/scripts/bump-astrolabe.sh index b0ba72d..b3aefaa 100755 --- a/scripts/bump-astrolabe.sh +++ b/scripts/bump-astrolabe.sh @@ -58,6 +58,15 @@ fi # Run commitizen bump and capture output if ! output=$($CZ_CMD 2>&1); then cd ../.. + + # Check if this is the expected "no commits to bump" case + if echo "$output" | grep -q "\[NO_COMMITS_TO_BUMP\]"; then + echo "ℹ️ No commits eligible for version bump" >&2 + echo "$output" >&2 + exit 0 + fi + + # Otherwise, this is an actual error echo "❌ Error: Version bump failed" >&2 echo "$output" >&2 echo "" >&2 diff --git a/scripts/bump-helm.sh b/scripts/bump-helm.sh index 62e8e9e..f8086a9 100755 --- a/scripts/bump-helm.sh +++ b/scripts/bump-helm.sh @@ -53,6 +53,15 @@ fi # Run commitizen bump and capture output if ! output=$($CZ_CMD 2>&1); then cd ../.. + + # Check if this is the expected "no commits to bump" case + if echo "$output" | grep -q "\[NO_COMMITS_TO_BUMP\]"; then + echo "ℹ️ No commits eligible for version bump" >&2 + echo "$output" >&2 + exit 0 + fi + + # Otherwise, this is an actual error echo "❌ Error: Version bump failed" >&2 echo "$output" >&2 echo "" >&2 diff --git a/scripts/bump-mcp.sh b/scripts/bump-mcp.sh index 9b39f03..37d56eb 100755 --- a/scripts/bump-mcp.sh +++ b/scripts/bump-mcp.sh @@ -44,6 +44,14 @@ fi # Run commitizen bump and capture output if ! output=$($CZ_CMD 2>&1); then + # Check if this is the expected "no commits to bump" case + if echo "$output" | grep -q "\[NO_COMMITS_TO_BUMP\]"; then + echo "ℹ️ No commits eligible for version bump" >&2 + echo "$output" >&2 + exit 0 + fi + + # Otherwise, this is an actual error echo "❌ Error: Version bump failed" >&2 echo "$output" >&2 echo "" >&2