Skip to content

Commit 3f5f4f4

Browse files
committed
Fix usage of boolean parameters
1 parent 8a8e415 commit 3f5f4f4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ runs:
7373
if [ -n "${{ inputs.junit-glob }}" ]; then
7474
JUNIT_GLOB="--junit-glob '${{ inputs.junit-glob }}'"
7575
fi
76-
TESTS=$(java -jar split-tests-java.jar --split-index ${{ inputs.split-index }} --split-total ${{ inputs.split-total }} --glob '${{ inputs.glob }}' ${EXCLUDE_GLOB} ${JUNIT_GLOB} --format ${{ inputs.format }} --average-time ${{ inputs.average-time }} --debug ${{ inputs.debug }})
76+
AVERAGE_TIME=""
77+
if [ -n "${{ inputs.average-time }}" ]; then
78+
AVERAGE_TIME="--average-time"
79+
fi
80+
DEBUG=""
81+
if [ -n "${{ inputs.debug }}" ]; then
82+
DEBUG="--debug"
83+
fi
84+
TESTS=$(java -jar split-tests-java.jar --split-index ${{ inputs.split-index }} --split-total ${{ inputs.split-total }} --glob '${{ inputs.glob }}' ${EXCLUDE_GLOB} ${JUNIT_GLOB} --format ${{ inputs.format }} ${AVERAGE_TIME} ${DEBUG}
7785
echo "This runner will execute the following tests: $TESTS"
7886
echo "test-suite=${TESTS}" >> $GITHUB_OUTPUT
7987
branding:

0 commit comments

Comments
 (0)