From 0b5d8263e0ca7b830bc4ae9f154bd79a5ff2ebd9 Mon Sep 17 00:00:00 2001 From: carlos-alm Date: Thu, 16 Jul 2026 00:43:05 -0600 Subject: [PATCH] fix(ci): allow-list Publish trigger events in benchmark.yml instead of excluding 'push' Both jobs gated on `workflow_run.event != 'push'`, which stops matching once Publish's dev-build trigger moves from push to schedule (companion PR). Switch to a positive allow-list of 'release'/'workflow_dispatch' so the filter can't silently drift out of sync with Publish's trigger set again. --- .github/workflows/benchmark.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 22adb12f9..bb3d7ed24 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -24,10 +24,14 @@ jobs: # single PR with the updates. record-benchmarks: runs-on: ubuntu-latest + # Allow-list rather than exclude, so this doesn't silently drift out of + # sync if Publish's trigger set changes again (see #2109) — only + # 'release'/'workflow_dispatch' Publish runs go through the + # pre-publish-benchmark gate that produces the artifacts this job needs. if: >- github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.event != 'push' + (github.event.workflow_run.event == 'release' || github.event.workflow_run.event == 'workflow_dispatch') permissions: actions: read contents: write @@ -121,7 +125,7 @@ jobs: if: >- github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.event != 'push') + (github.event.workflow_run.event == 'release' || github.event.workflow_run.event == 'workflow_dispatch')) permissions: actions: read contents: write