From ca3b011184bf19ffe2b1b68ff158cf0caafbaf69 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Sat, 17 Oct 2026 06:18:25 +0000 Subject: [PATCH] Pass the PR head hash in the same-repo PR workflows On a pull_request event, actions/checkout checks out the synthetic merge commit, so without --hash each report records a commit that never appears in the pull request. Matches the GitHub Actions how-to. --- .github/workflows/pr_bare_metal_benchmarks.yml | 1 + .github/workflows/pr_benchmarks.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/pr_bare_metal_benchmarks.yml b/.github/workflows/pr_bare_metal_benchmarks.yml index 4e6bea0..418631b 100644 --- a/.github/workflows/pr_bare_metal_benchmarks.yml +++ b/.github/workflows/pr_bare_metal_benchmarks.yml @@ -21,6 +21,7 @@ jobs: --project example \ --key '${{ secrets.BENCHER_API_KEY }}' \ --branch "$GITHUB_HEAD_REF" \ + --hash '${{ github.event.pull_request.head.sha }}' \ --start-point "$GITHUB_BASE_REF" \ --start-point-hash '${{ github.event.pull_request.base.sha }}' \ --start-point-clone-thresholds \ diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.yml index 0bf9f5a..c65ae94 100644 --- a/.github/workflows/pr_benchmarks.yml +++ b/.github/workflows/pr_benchmarks.yml @@ -22,6 +22,7 @@ jobs: --project example \ --key '${{ secrets.BENCHER_API_KEY }}' \ --branch "$GITHUB_HEAD_REF" \ + --hash '${{ github.event.pull_request.head.sha }}' \ --start-point "$GITHUB_BASE_REF" \ --start-point-hash '${{ github.event.pull_request.base.sha }}' \ --start-point-clone-thresholds \