Skip to content

Add eval workflow that triggers remote eval job #1

Add eval workflow that triggers remote eval job

Add eval workflow that triggers remote eval job #1

Workflow file for this run

name: Test Run Eval
on:
pull_request:
types: [labeled]
jobs:
checkout-pr:
if: contains(github.event.pull_request.labels.*.name, 'test-mh-eval')
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Trigger remote job
run: |
REPO_URL="https://github.com/${{ github.repository }}"
PR_BRANCH="${{ github.head_ref }}"
echo "Repository URL: $REPO_URL"
echo "PR Branch: $PR_BRANCH"
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d "{\"ref\": \"mh-add-wf\", \"inputs\": {\"github-repo\": \"REPO_URL\", \"github-branch\": \"PR_BRANCH\"}}" \
https://api.github.com/repos/All-Hands-AI/evaluation/actions/workflows/create-branch.yml/dispatches