Update benchmark.yml
This commit is contained in:
parent
30d04db981
commit
756c3ea0de
1 changed files with 4 additions and 1 deletions
5
.github/workflows/benchmark.yml
vendored
5
.github/workflows/benchmark.yml
vendored
|
@ -43,8 +43,11 @@ jobs:
|
|||
|
||||
- name: Get bench command
|
||||
id: bench-command
|
||||
env:
|
||||
# protects from untrusted user input and command injection
|
||||
COMMENT: ${{ github.event.comment.body }}
|
||||
run: |
|
||||
benchcmd=$(echo "${{ github.event.comment.body }}" | grep '!bench' | awk -F ' ' '{print $2}')
|
||||
benchcmd=$(echo "$COMMENT" | grep '!bench' | awk -F ' ' '{print $2}')
|
||||
echo "bench=$benchcmd" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
|
|
Loading…
Reference in a new issue