From 5ad38a52b02aea911c3192fe890071517e51bb54 Mon Sep 17 00:00:00 2001 From: Joshua Liebow-Feeser Date: Wed, 3 Jun 2026 13:04:35 -0700 Subject: [PATCH] [ci][anneal] Don't publish fork PR benchmarks --- .github/workflows/anneal.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/anneal.yml b/.github/workflows/anneal.yml index 1395acbcde..e93649fd14 100644 --- a/.github/workflows/anneal.yml +++ b/.github/workflows/anneal.yml @@ -110,7 +110,9 @@ jobs: tool: 'customSmallerIsBetter' output-file-path: build_time.json gh-pages-branch: benchmark-data - auto-push: true + # External pull requests cannot push benchmark data to the + # `benchmark-data` branch. + auto-push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} save-data-file: ${{ github.ref == 'refs/heads/main' }} benchmark-data-dir-path: dashboard fail-on-alert: false