From 24e3e23ca64aa944ff3b82492a0ec067964ab23c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Feb 2026 01:20:32 -0700 Subject: [PATCH] fix: run benchmark after publish to prevent workflow cancellation Change benchmark trigger from release:published to workflow_run on Publish so the two workflows no longer race. Benchmark now starts only after Publish completes successfully. --- .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 773279b0..438f495c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1,8 +1,9 @@ name: Benchmark on: - release: - types: [published] + workflow_run: + workflows: ["Publish"] + types: [completed] workflow_dispatch: permissions: {} @@ -10,6 +11,9 @@ permissions: {} jobs: benchmark: runs-on: ubuntu-latest + if: >- + github.event_name == 'workflow_dispatch' || + github.event.workflow_run.conclusion == 'success' permissions: contents: write pull-requests: write