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 <