Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(ci): check inputs.version first for workflow_call (#773)

Francesco Bonacci23ffb9f9fe30
diff --git a/.github/workflows/cd-py-computer-server.yml b/.github/workflows/cd-py-computer-server.yml
index a69a65297c..76969a8d78 100644
--- a/.github/workflows/cd-py-computer-server.yml
+++ b/.github/workflows/cd-py-computer-server.yml
@@ -36,7 +36,10 @@ jobs:
- name: Determine version
id: get-version
run: |
- if [ "${{ github.event_name }}" == "push" ]; then
+ # Check inputs.version first (set by workflow_call)
+ if [ -n "${{ inputs.version }}" ]; then
+ VERSION=${{ inputs.version }}
+ elif [ "${{ github.event_name }}" == "push" ]; then
# Extract version from tag (for package-specific tags)
if [[ "${{ github.ref }}" =~ ^refs/tags/computer-server-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then
VERSION=${BASH_REMATCH[1]}
@@ -48,8 +51,8 @@ jobs:
# Use version from workflow dispatch
VERSION=${{ github.event.inputs.version }}
else
- # Use version from workflow_call
- VERSION=${{ inputs.version }}
+ echo "No version provided"
+ exit 1
fi
echo "VERSION=$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT