Skip to content

Commit

Permalink
chore(workflow): update bench-pr.yaml (#4963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Nov 17, 2023
1 parent 843e7ed commit 3573321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bench-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 3573321

Please sign in to comment.