mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
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
|
- name: Get bench command
|
||||||
id: bench-command
|
id: bench-command
|
||||||
|
env:
|
||||||
|
# protects from untrusted user input and command injection
|
||||||
|
COMMENT: ${{ github.event.comment.body }}
|
||||||
run: |
|
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
|
echo "bench=$benchcmd" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue