File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Performance Benchmark
33on :
44 push :
55 branches : [main]
6- pull_request :
6+ pull_request_target :
77 branches : [main]
88
99permissions :
@@ -25,13 +25,15 @@ jobs:
2525 # PR Benchmark: Compare PR against baseline from gh-pages
2626 # ─────────────────────────────────────────────────────────────────────────────
2727 benchmark-pr :
28- if : github.event_name == 'pull_request '
28+ if : github.event_name == 'pull_request_target '
2929 runs-on : ubuntu-latest
3030 name : PR Performance Comparison
3131
3232 steps :
3333 - name : Checkout PR branch
3434 uses : actions/checkout@v5
35+ with :
36+ ref : ${{ github.event.pull_request.head.sha }}
3537
3638 - name : Setup PHP
3739 uses : shivammathur/setup-php@v2
@@ -81,10 +83,11 @@ jobs:
8183
8284 - name : Post benchmark comparison
8385 if : always()
84- uses : marocchino/sticky-pull-request -comment@v2
86+ uses : peter-evans/create-or-update -comment@v4
8587 with :
86- header : benchmark
87- path : comparison.md
88+ issue-number : ${{ github.event.pull_request.number }}
89+ body-path : comparison.md
90+ edit-mode : replace
8891
8992 - name : Upload benchmark artifacts
9093 if : always()
You can’t perform that action at this time.
0 commit comments