Skip to content

Commit 1af37ee

Browse files
committed
benchmark: add a new worklfow to trigger the benchmark workflow defined in FluxMLBenchmarks.jl
1 parent ace7d53 commit 1af37ee

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Benchmark Trigger
2+
3+
on:
4+
pull_request:
5+
types: [ labeled ]
6+
7+
jobs:
8+
benchmark_trigger:
9+
if: ${{ github.event.label.name == 'benchmark' }}
10+
runs-on: ubuntu-latest
11+
env:
12+
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) }}
16+
steps:
17+
- uses: benc-uk/workflow-dispatch@v1
18+
with:
19+
repo: FluxML/FluxMLBenchmarks.jl
20+
workflow: Benchmark.yml
21+
token: ${{ secrets.PAT }}
22+
inputs: '{ "repo": $REPOSITORY, "pr_id": $PR_ID, "target_url": $TARGET_URL, "baseline_url": $BASELINE_URL }'

0 commit comments

Comments
 (0)