Skip to content

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

add branch name selection into workflow

Alezander9ad71ba8d2964
diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yaml
index 448d7dff1..d01853a62 100644
--- a/.github/workflows/eval.yaml
+++ b/.github/workflows/eval.yaml
@@ -19,10 +19,19 @@ jobs:
EVALUATION_TOOL_SECRET_KEY: ${{ secrets.EVALUATION_TOOL_SECRET_KEY }}
steps:
+ - name: Determine branch to checkout
+ id: determine_branch
+ run: |
+ # Use the branch from client_payload or default to main
+ BRANCH="${{ github.event.client_payload.branch }}"
+ BRANCH="${BRANCH:-main}"
+ echo "BRANCH=$BRANCH" >> $GITHUB_OUTPUT
+ echo "::notice title=Branch Selection::Will checkout and run evaluation on branch: $BRANCH"
+
- name: Checkout repository
uses: actions/checkout@v4
with:
- ref: "new-eval"
+ ref: ${{ steps.determine_branch.outputs.BRANCH }}
- name: Set up Python and uv
uses: astral-sh/setup-uv@v6