Skip to content

Commit 39f2883

Browse files
Replace marocchino/sticky-pull-request-comment with peter-evans/create-or-update-comment
1 parent d8ea3e4 commit 39f2883

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Performance Benchmark
33
on:
44
push:
55
branches: [main]
6-
pull_request:
6+
pull_request_target:
77
branches: [main]
88

99
permissions:
@@ -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()

0 commit comments

Comments
 (0)