From 3573321d7525e616f4fdda3b822fc2ab5ed25dfe Mon Sep 17 00:00:00 2001 From: Timeless0911 <50201324+Timeless0911@users.noreply.github.com> Date: Fri, 17 Nov 2023 16:20:18 +0800 Subject: [PATCH] chore(workflow): update bench-pr.yaml (#4963) --- .github/workflows/bench-pr.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bench-pr.yaml b/.github/workflows/bench-pr.yaml index 8ad2b8c9b27b..1ec068a5bea7 100644 --- a/.github/workflows/bench-pr.yaml +++ b/.github/workflows/bench-pr.yaml @@ -72,12 +72,12 @@ jobs: result-encoding: string script: | const prData = ${{ steps.get-pr-data.outputs.result }} - + const commentBody = ${{ github.event.comment.body }} let productName - if (startsWith(github.event.comment.body, '!bench-framework')) { + if (commentBody.startsWith('!bench-framework')) { productName = 'MODERNJS_FRAMEWORK' - } else if (startsWith(github.event.comment.body, '!bench-module')) { + } else if (commentBody.startsWith('!bench-module')) { productName = 'MODERNJS_MODULE' }