Skip to content

Commit

Permalink
Merge pull request #483 from utam0k/improvement/benchmark-command
Browse files Browse the repository at this point in the history
use a command instead of label to run benchmark.
  • Loading branch information
tommady authored Nov 21, 2021
2 parents 565d1ce + a2b92ab commit 494276f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/benchmark_execution_time.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Benchmark execution time comparison with the main branch

on:
pull_request:
branches: [main]
issue_comment:
types: [created, edited, deleted]

jobs:
building-pr-branch:
if: contains( github.event.pull_request.labels.*.name, 'benchmark-exec-time' )
if: (github.event.issue.pull_request != null) && github.event.comment.body == '!github easy-benchmark'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
path: ./youki

building-main-branch:
if: contains( github.event.pull_request.labels.*.name, 'benchmark-exec-time' )
if: (github.event.issue.pull_request != null) && github.event.comment.body == '!github easy-benchmark'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
path: ./youki

benchmark-exec:
if: contains( github.event.pull_request.labels.*.name, 'benchmark-exec-time' )
if: (github.event.issue.pull_request != null) && github.event.comment.body == '!github easy-benchmark'
needs:
- building-pr-branch
- building-main-branch
Expand Down

0 comments on commit 494276f

Please sign in to comment.