Skip to content

Commit

Permalink
update: add workflow_dispatch trigger to test FluxMLBenchmarks.jl mor…
Browse files Browse the repository at this point in the history
…e conveniently
  • Loading branch information
skyleaworlder committed Jul 28, 2023
1 parent 1af37ee commit 64d313b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/BenchmarkTrigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@ name: Benchmark Trigger
on:
pull_request:
types: [ labeled ]
workflow_dispatch:
inputs:
pr_id:
type: string
description: id of the pull request that triggers this workflow
target_url:
type: string
description: url of target
baseline_url:
type: string
description: url of baseline

jobs:
benchmark_trigger:
if: ${{ github.event.label.name == 'benchmark' }}
runs-on: ubuntu-latest
env:
REPOSITORY: ${{ github.event.repository.full_name }}
PR_ID: ${{ github.event.pull_request.number }}
TARGET_URL: ${{ format("{0}#{1}", github.event.pull_request.head.html_url, github.event.pull_request.head.sha) }}
BASELINE_URL: ${{ format("{0}#{1}"", github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
PR_ID: ${{ github.event.inputs.pr_id || github.event.pull_request.number }}
TARGET_URL: ${{ github.event.inputs.target_url || format("{0}#{1}", github.event.pull_request.head.html_url, github.event.pull_request.head.sha) }}
BASELINE_URL: ${{ github.event.inputs.baseline_url || format("{0}#{1}"", github.event.pull_request.base.repo.html_url, github.event.pull_request.base.sha) }}
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
Expand Down

0 comments on commit 64d313b

Please sign in to comment.