Skip to content

Commit 836ac26

Browse files
committed
Make jq expression return a list.
1 parent adfcf8e commit 836ac26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/eval.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
if [ -z "${{ github.event.inputs.limit_to_document }}" ]; then
145145
matrix=$(jq -c '.' ./python_components/evaluation/truthset.json)
146146
else
147-
matrix=$(jq -c '.[] | select(.file_name == "${{ github.event.inputs.limit_to_document }}")' ./python_components/evaluation/truthset.json)
147+
matrix=$(jq -c '[.[] | select(.file_name == "${{ github.event.inputs.limit_to_document }}")]' ./python_components/evaluation/truthset.json)
148148
fi
149149
echo "Matrix data: $matrix"
150150
echo "matrix=$matrix" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)