Skip to content

Commit 68e274e

Browse files
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.
1 parent c2a4153 commit 68e274e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Benchmark
22

33
on:
4-
release:
5-
types: [published]
4+
workflow_run:
5+
workflows: ["Publish"]
6+
types: [completed]
67
workflow_dispatch:
78

89
permissions: {}
910

1011
jobs:
1112
benchmark:
1213
runs-on: ubuntu-latest
14+
if: >-
15+
github.event_name == 'workflow_dispatch' ||
16+
github.event.workflow_run.conclusion == 'success'
1317
permissions:
1418
contents: write
1519
pull-requests: write

0 commit comments

Comments
 (0)