Skip to content

Commit 5c25b05

Browse files
authored
properly send arguments into command
1 parent 63e45cd commit 5c25b05

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: action.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ runs:
4444
# setup split type
4545
if [ -n "${{ inputs.junit-path }}" ]; then
4646
echo "junit-path set. Splitting based on JUnit timings"
47-
SPLIT_BY="-junit -junit-path=${{ inputs.junit-path }}"
47+
SPLIT_BY=("-junit" "-junit-path='${{ inputs.junit-path }'")
4848
elif [ -n "${{ inputs.line-count }}" ]; then
4949
echo "line-count set. Splitting based on test line count"
50-
SPLIT_BY="-line-count"
50+
SPLIT_BY=("-line-count")
5151
else
5252
echo "No split type arguments set. Using default"
53-
SPLIT_BY=""
53+
SPLIT_BY=()
5454
fi
5555
56-
EXCLUDE_GLOB=""
56+
EXCLUDE_GLOB=()
5757
if [ -n "${{ inputs.exclude-glob }}" ]; then
58-
EXCLUDE_GLOB="-exclude-glob='${{ inputs.exclude-glob }}'"
58+
EXCLUDE_GLOB=("-exclude-glob='${{ inputs.exclude-glob }}'")
5959
fi
6060
61-
TESTS=$(./split_tests ${SPLIT_BY} -split-index=${{ inputs.split-index }} -split-total=${{ inputs.split-total }} -glob='${{ inputs.glob }}' ${EXCLUDE_GLOB})
61+
TESTS=$(./split_tests ${SPLIT_BY[@]} -split-index=${{ inputs.split-index }} -split-total=${{ inputs.split-total }} -glob='${{ inputs.glob }}' ${EXCLUDE_GLOB[@]})
6262
6363
echo $TESTS
6464

0 commit comments

Comments
 (0)