Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update cloud.yml

Nick Sweetingf0e07d62238a
diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml
index 4a91ba827..7fad47892 100644
--- a/.github/workflows/cloud.yml
+++ b/.github/workflows/cloud.yml
@@ -11,19 +11,14 @@ jobs:
eval_deploy:
runs-on: ubuntu-latest
steps:
- - name: eval-deploy
- run: |
- event_type="trigger-workflow"
- curl -L \
- -X POST \
- -H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
- -H "X-GitHub-Api-Version: 2022-11-28" \
- https://api.github.com/repos/browser-use/cloud/dispatches \
- -d "{
- \"event_type\": \"$event_type\",
- \"client_payload\": {
- \"git_branch\": \"${{ github.head_ref }}\",
- \"commit_hash\": \"${{ github.sha }}\"
- }
- }"
+ - uses: actions/github-script@v7
+ with:
+ github-token: ${{ secrets.TRIGGER_CLOUD_BUILD_GH_KEY }}
+ script: |
+ const result = await github.rest.actions.createWorkflowDispatch({
+ owner: 'browser-use',
+ repo: 'cloud',
+ workflow_id: 'eval-deploy.yml',
+ ref: 'main'
+ })
+ console.log(result)