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.

Ensure workflows fetch absolute latest main after version bump

f-trycuadbd5a76f8201
diff --git a/.github/workflows/pypi-publish-agent.yml b/.github/workflows/pypi-publish-agent.yml
index f20cf2fb76..25d7ac41a7 100644
--- a/.github/workflows/pypi-publish-agent.yml
+++ b/.github/workflows/pypi-publish-agent.yml
@@ -33,6 +33,14 @@ jobs:
- uses: actions/checkout@v4
with:
ref: main
+ fetch-depth: 0
+
+ - name: Ensure latest main branch
+ run: |
+ git fetch origin main
+ git reset --hard origin/main
+ echo "Current HEAD commit:"
+ git log -1 --oneline
- name: Determine version
id: get-version
diff --git a/.github/workflows/pypi-reusable-publish.yml b/.github/workflows/pypi-reusable-publish.yml
index 9be38105dd..71262391bd 100644
--- a/.github/workflows/pypi-reusable-publish.yml
+++ b/.github/workflows/pypi-reusable-publish.yml
@@ -50,6 +50,13 @@ jobs:
ref: main
fetch-depth: 0 # Full history for release creation
+ - name: Ensure latest main branch
+ run: |
+ git fetch origin main
+ git reset --hard origin/main
+ echo "Current HEAD commit:"
+ git log -1 --oneline
+
- name: Set up Python
uses: actions/setup-python@v4
with: