Skip to content

Commit 350454c

Browse files
committed
Trim path in parameters up to the file name
1 parent 5f3144c commit 350454c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ on:
3434
- 'json-schema-validator/*'
3535
- 'gradle/*'
3636
- 'generator/*'
37+
- '.github/workflows/benchmark.yml'
3738
pull_request:
3839

3940
env:
@@ -161,7 +162,7 @@ jobs:
161162
do
162163
file_name=$(basename "$report")
163164
platform="${file_name%.*}"
164-
jq "[ .[] | .benchmark |= \"${platform}.\" + ltrimstr(\"io.github.optimumcode.json.schema.benchmark.\") ]" $report > ${{ env.RESULTS_DIR }}/$platform.json
165+
jq "[ .[] | .benchmark |= \"${platform}.\" + ltrimstr(\"io.github.optimumcode.json.schema.benchmark.\") | .params |= map_values(. |= split(\"/\")[-1]) ]" $report > ${{ env.RESULTS_DIR }}/$platform.json
165166
done
166167
AGGREGATED_REPORT=aggregated.json
167168
# Joined reports looks like this: [[{},{}], [{},{}]]

0 commit comments

Comments
 (0)