From 54eab1db42154d38d202d42ab14e59818ac05504 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Sat, 26 Sep 2026 20:28:52 +0000 Subject: [PATCH] Read the Job and Project from either dispatch payload shape The bare metal attach workflow read the Job and the Project from the `bencher` object of the repository_dispatch payload. Callbacks sent by the current job callbacks branch carry them as top-level `job` and `project` keys instead, so fall back to those when the `bencher` object is absent. --- .github/workflows/bare_metal_attach.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bare_metal_attach.yml b/.github/workflows/bare_metal_attach.yml index 7425915..43ba1af 100644 --- a/.github/workflows/bare_metal_attach.yml +++ b/.github/workflows/bare_metal_attach.yml @@ -40,8 +40,8 @@ jobs: run: echo "$HOME/.bencher-cli/bin" >> "$GITHUB_PATH" - name: Post PR Benchmark Results with Bencher env: - JOB_UUID: ${{ github.event.client_payload.bencher.job }} - PROJECT_SLUG: ${{ github.event.client_payload.bencher.project }} + JOB_UUID: ${{ github.event.client_payload.bencher.job || github.event.client_payload.job }} + PROJECT_SLUG: ${{ github.event.client_payload.bencher.project || github.event.client_payload.project }} run: | bencher run \ --host https://dev.api.bencher.dev \