File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,27 @@ name: Benchmark Trigger
3
3
on :
4
4
pull_request :
5
5
types : [ labeled ]
6
+ workflow_dispatch :
7
+ inputs :
8
+ pr_id :
9
+ type : string
10
+ description : id of the pull request that triggers this workflow
11
+ target_url :
12
+ type : string
13
+ description : url of target
14
+ baseline_url :
15
+ type : string
16
+ description : url of baseline
6
17
7
18
jobs :
8
19
benchmark_trigger :
9
20
if : ${{ github.event.label.name == 'benchmark' }}
10
21
runs-on : ubuntu-latest
11
22
env :
12
23
REPOSITORY : ${{ github.event.repository.full_name }}
13
- PR_ID : ${{ github.event.pull_request.number }}
14
- TARGET_URL : ${{ format("{0}#{1}", github.event.pull_request.head.html_url, github.event.pull_request.head.sha) }}
15
- BASELINE_URL : ${{ format("{0}#{1}"", github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
24
+ 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) }}
26
+ BASELINE_URL : ${{ github.event.inputs.baseline_url || format("{0}#{1}"", github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
16
27
steps :
17
28
- uses : benc-uk/workflow-dispatch@v1
18
29
with :
You can’t perform that action at this time.
0 commit comments