Skip to content

Commit

Permalink
Merge pull request #1160 from gregdhill/fix/escape-bench-syntax
Browse files Browse the repository at this point in the history
fix: leave bench args unset
  • Loading branch information
gregdhill authored Aug 3, 2023
2 parents 0b5a0ce + a34e625 commit 32e1f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
script: |
const [cmd, ...args] = context.payload.comment.body.split(" ")
const [runtime, pallet] = args
return `bash ./scripts/benchmark.sh -r ${runtime ?? "\\''*'\\'"} -p ${pallet ?? "\\''*'\\'"}`
return `bash ./scripts/benchmark.sh -r ${runtime ?? ""} -p ${pallet ?? ""}`
- uses: actions/github-script@v6
name: Post comment
id: comment
Expand Down
4 changes: 4 additions & 0 deletions scripts/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ while getopts ":r:p:" opt; do
esac
done

if [ -z "${pallet}" ]; then
pallet='*'
fi

cargo run \
--bin interbtc-parachain \
--features runtime-benchmarks \
Expand Down

0 comments on commit 32e1f20

Please sign in to comment.