From 3618aed39e1e44d13fcb27fe2cddef1b3cb3b790 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Fri, 19 Dec 2025 21:55:25 +0100 Subject: [PATCH] fix(astrolabe): prevent workflow failure when only helm/astrolabe commits exist When filtering commits with grep -v, if all commits are filtered out, grep returns exit code 1 which causes the pipeline to fail with set -e. Wrap grep commands in { ... || true; } to ensure they don't fail the pipeline when they filter out all results. This fixes the workflow failure when a fix(astrolabe): commit is pushed without any MCP server changes. --- .github/workflows/bump-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 101d6df..e6bbd83 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -85,7 +85,7 @@ jobs: # Count conventional commits that are NOT scoped to helm or astrolabe mcp_commit_count=$(git log "$commit_range" --oneline --grep="^(feat|fix|docs|refactor|perf|test|build|ci|chore)" -E | \ - grep -v "(helm)" | grep -v "(astrolabe)" | wc -l) + { grep -v "(helm)" || true; } | { grep -v "(astrolabe)" || true; } | wc -l) if [ "$mcp_commit_count" -gt 0 ]; then echo "Found $mcp_commit_count commits for MCP server since $last_mcp_tag"