From 71a0a7582eb32e153c40d1f9e407bb0d3a3e438e 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..8f9752ec30dd 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.body, '/bench_x64') name: Performance x86-64 runs-on: [self-hosted, linux, x64] # Inputs the workflow accepts.