From 929c40709a5de9a00b09fc2c69d7d94613d609b0 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Thu, 15 Jan 2026 09:59:09 +0100 Subject: [PATCH] fix(ci): bump helm chart version when MCP appVersion changes When the MCP server version is bumped, the Helm chart's appVersion is updated but the chart version was not. This caused users to not see new chart releases when the app version changed. Now the Helm chart version is bumped (PATCH) whenever: 1. There are helm-scoped commits (existing behavior) 2. OR when the MCP server version is bumped (new behavior) This ensures Helm users always get notified of new releases containing updated app versions. --- .github/workflows/bump-version.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 078015c..a92373b 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -87,21 +87,32 @@ jobs: mcp_commit_count=$(git log "$commit_range" --oneline --grep="^(feat|fix|docs|refactor|perf|test|build|ci|chore)" -E | \ { grep -v "(helm)" || true; } | { grep -v "(astrolabe)" || true; } | wc -l) + MCP_BUMPED=false if [ "$mcp_commit_count" -gt 0 ]; then echo "Found $mcp_commit_count commits for MCP server since $last_mcp_tag" echo "Bumping MCP server version..." ./scripts/bump-mcp.sh BUMPED_COMPONENTS="$BUMPED_COMPONENTS mcp" + MCP_BUMPED=true else echo "No commits found for MCP server since $last_mcp_tag" fi - # Bump Helm chart (scope: helm) + # Bump Helm chart (scope: helm OR when MCP appVersion changes) echo "Checking Helm chart for version bump..." + HELM_HAS_COMMITS=false if has_commits_since_tag "nextcloud-mcp-server-" "(feat|fix|docs|refactor|perf|test|build|ci|chore)\(helm\)(!)?:"; then - echo "Bumping Helm chart version..." + HELM_HAS_COMMITS=true + fi + + if [ "$HELM_HAS_COMMITS" = true ]; then + echo "Bumping Helm chart version (helm-scoped commits)..." ./scripts/bump-helm.sh BUMPED_COMPONENTS="$BUMPED_COMPONENTS helm" + elif [ "$MCP_BUMPED" = true ]; then + echo "Bumping Helm chart version (appVersion changed)..." + ./scripts/bump-helm.sh --increment PATCH + BUMPED_COMPONENTS="$BUMPED_COMPONENTS helm" fi # Bump Astrolabe (scope: astrolabe)