From 7dd6fae971991ba19f0276634b1976df83f81e8b Mon Sep 17 00:00:00 2001 From: f-trycua Date: Tue, 18 Nov 2025 23:37:11 +0100 Subject: [PATCH] Fix agent version capture in bump-version workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace heredoc-based Python script with inline command to fix exit code 2 error in the "Capture bumped agent version" step. The heredoc syntax with indented EOF marker was causing issues in GitHub Actions. Simplified to a single-line Python command. Fixes: https://github.com/trycua/cua/actions/runs/19482457144 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/bump-version.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index ee6a8c597..48b7c999c 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -99,15 +99,7 @@ jobs: id: agent_version run: | cd libs/python/agent - VERSION=$( - python - <<'EOF' - import tomllib - from pathlib import Path - - data = tomllib.loads(Path("pyproject.toml").read_text()) - print(data["project"]["version"]) - EOF - ) + VERSION=$(python -c "import tomllib; from pathlib import Path; data = tomllib.loads(Path('pyproject.toml').read_text()); print(data['project']['version'])") echo "Agent version: $VERSION" echo "version=$VERSION" >> "$GITHUB_OUTPUT"