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(workflows): use PR workflow for version bumps to comply with branch protection (#757)

Francesco Bonacci49ed58d05948
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.yml
index 5d0f47ddcf..0a4be54c86 100644
--- a/.github/workflows/release-bump-version.yml
+++ b/.github/workflows/release-bump-version.yml
@@ -291,9 +291,29 @@ jobs:
echo "lume version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- - name: Push changes
+ - name: Create release branch and PR
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- git push origin main --follow-tags
+ # Get the tag that was created by bump2version
+ TAG=$(git describe --tags --abbrev=0)
+ BRANCH_NAME="release/${TAG}"
+
+ # Create and push the release branch
+ git checkout -b "$BRANCH_NAME"
+ git push origin "$BRANCH_NAME" --follow-tags
+
+ # Create PR and enable auto-merge
+ PR_URL=$(gh pr create \
+ --title "chore: bump version to ${TAG}" \
+ --body "Automated version bump to ${TAG}" \
+ --base main \
+ --head "$BRANCH_NAME")
+
+ echo "Created PR: $PR_URL"
+
+ # Enable auto-merge (will merge once requirements are met)
+ gh pr merge "$PR_URL" --auto --squash
publish-computer:
needs: [bump-version, publish-core]