From f2fc770084a2f2f15118a3c5108da1cc7f233a02 Mon Sep 17 00:00:00 2001 From: Johnnie Birch Date: Sat, 29 Jan 2022 15:11:32 -0800 Subject: [PATCH] Change workflow trigger during special comment --- .github/workflows/performance.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 7284791b3ca7..1af48befe6bd 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -6,9 +6,8 @@ name: "Performance Testing" # Controls when the action will run. # Workflow runs when manually triggered using the UI or API. on: - push: - pull_request: - branches: [ main ] + issue_comment: + types: [created, edited, deleted] # Env variables env: @@ -16,6 +15,7 @@ env: jobs: Performance_x86-64: + if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, '/bench_x64') name: Performance x86-64 runs-on: [self-hosted, linux, x64] # Inputs the workflow accepts.