Files
my-pal-mcp-server/scripts
Patryk Ciechanski 06cbe03a15 fix: Remove deprecated set-output command from version bump script
Removed deprecated ::set-output command that caused GitHub Actions to fail
during automated version bumping. The workflow failed trying to create
tag v4.0.8 instead of v4.0.9 because the deprecated command interfered
with proper version output capture.

The workflow already uses the correct modern method:
NEW_VERSION=$(python -c "from config import __version__; print(__version__)")
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT

This fixes the auto-version workflow failure from PR #13.
2025-06-12 14:42:49 +02:00
..

Scripts Directory

This directory contains utility scripts for the Gemini MCP Server project.

bump_version.py

A utility script for semantic version bumping that integrates with the automatic versioning workflow.

Usage

python scripts/bump_version.py <major|minor|patch>

Examples

# Bump patch version (e.g., 3.2.0 → 3.2.1)
python scripts/bump_version.py patch

# Bump minor version (e.g., 3.2.0 → 3.3.0)
python scripts/bump_version.py minor

# Bump major version (e.g., 3.2.0 → 4.0.0)
python scripts/bump_version.py major

Features

  • Reads current version from config.py
  • Applies semantic versioning rules
  • Updates both __version__ and __updated__ fields
  • Preserves file formatting and structure
  • Outputs new version for GitHub Actions integration

Integration

This script is primarily used by the GitHub Actions workflow (.github/workflows/auto-version.yml) for automatic version bumping based on PR title prefixes. Manual usage is available for special cases.

Version Bump Rules

  • Major: Increments first digit, resets others (3.2.1 → 4.0.0)
  • Minor: Increments second digit, resets patch (3.2.1 → 3.3.0)
  • Patch: Increments third digit (3.2.1 → 3.2.2)