From 380222eb21b282c4f4eca14260f4f8a558853cd3 Mon Sep 17 00:00:00 2001 From: Les Orchard Date: Wed, 10 Jun 2026 15:50:58 -0700 Subject: [PATCH] ci: dispatch pilo_main_build to pilo-evals-judge on main pushes --- .github/workflows/trigger_main_build.yml | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/trigger_main_build.yml diff --git a/.github/workflows/trigger_main_build.yml b/.github/workflows/trigger_main_build.yml new file mode 100644 index 00000000..ecc319be --- /dev/null +++ b/.github/workflows/trigger_main_build.yml @@ -0,0 +1,59 @@ +name: Trigger Pilo Main Build + +# On every push to main (and manual dispatch), tell pilo-evals-judge to build +# pilo-cli: and move pilo-cli:latest to it, so scheduled evals always run +# the current main build. Thin trigger — all build logic lives in +# pilo-evals-judge's handle_pilo_main_build.yml. Mirrors trigger_eval.yml. + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + trigger-main-build: + name: Dispatch pilo_main_build to pilo-evals-judge + runs-on: ubuntu-latest + steps: + - name: Resolve commit timestamp + id: meta + run: | + # head_commit is present on push events but absent on workflow_dispatch; + # fall back to the current UTC time so the payload is always populated. + TS="${{ github.event.head_commit.timestamp }}" + if [ -z "$TS" ]; then TS="$(date -u +%Y-%m-%dT%H:%M:%SZ)"; fi + echo "commit_timestamp=$TS" >> "$GITHUB_OUTPUT" + + - name: Trigger repository_dispatch + run: | + cat > payload.json <