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.

refactor(workflows): push version bumps directly to main with GitHub App (#766)

Francesco Bonacciecfe935b3178
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.yml
index 6e18f775ab..ff94d441b6 100644
--- a/.github/workflows/release-bump-version.yml
+++ b/.github/workflows/release-bump-version.yml
@@ -306,10 +306,20 @@ jobs:
echo "lume version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ - name: Generate GitHub App token
+ id: app-token
+ uses: actions/create-github-app-token@v1
+ with:
+ app-id: ${{ secrets.RELEASE_APP_ID }}
+ private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
+
- name: Push release to main
env:
- GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
+ # Configure git to use the app token for pushing
+ git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
+
TAG=$(git describe --tags --abbrev=0)
echo "Pushing version bump to main with tag: $TAG"
git push origin HEAD:main --follow-tags