mirror of
https://github.com/trycua/computer.git
synced 2026-05-19 15:38:48 -05:00
Merge pull request #593 from trycua/fix-agent-version-capture
Fix agent version capture in bump-version workflow
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user