Skip to content

Commit fb690ad

Browse files
committed
fix: TARGET_URL & change to pull_request_target
1 parent 8e3f950 commit fb690ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/BenchmarkTrigger.yml

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

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [ labeled ]
66
workflow_dispatch:
77
inputs:
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
REPOSITORY: ${{ github.event.repository.full_name }}
2424
PR_ID: ${{ github.event.inputs.pr_id || github.event.pull_request.number }}
25-
TARGET_URL: ${{ github.event.inputs.target_url || format('{0}#{1}', github.event.pull_request.head.html_url, github.event.pull_request.head.sha) }}
25+
TARGET_URL: ${{ github.event.inputs.target_url || format('{0}#{1}', github.event.pull_request.head.repo.html_url, github.event.pull_request.head.sha) }}
2626
BASELINE_URL: ${{ github.event.inputs.baseline_url || format('{0}#{1}', github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
2727
steps:
2828
-

0 commit comments

Comments
 (0)