File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,22 +154,25 @@ jobs:
154154 QUICKSTARTS_TO_TEST : ${{ steps.quickstarts-to-test.outputs.quickstarts_to_test }}
155155 run : |
156156 set -x
157- matrix="{\"quickstart\":["
158- first=1
159- echo "The list of quickstarts has been determined to:"
160- for qs_dir in ${QUICKSTARTS_TO_TEST}; do
161- echo "${qs_dir}"
162- if [ "${first}" = "0" ]; then
163- matrix="${matrix}, "
164- fi
165- matrix="${matrix}\"${qs_dir}\""
166- first=0
167- done
157+ if [ -n "$QUICKSTARTS_TO_TEST" ]; then
158+ matrix="{\"quickstart\":["
159+ first=1
160+ echo "The list of quickstarts has been determined to:"
161+ for qs_dir in ${QUICKSTARTS_TO_TEST}; do
162+ echo "${qs_dir}"
163+ if [ "${first}" = "0" ]; then
164+ matrix="${matrix}, "
165+ fi
166+ matrix="${matrix}\"${qs_dir}\""
167+ first=0
168+ done
169+ matrix="${matrix}]}"
168170
169- matrix="${matrix}]}"
170-
171- echo "Calculated Matrix JSON: ${matrix}"
172- echo "matrix=${matrix}" >> $GITHUB_OUTPUT
171+ echo "Calculated Matrix JSON: ${matrix}"
172+ echo "matrix=${matrix}" >> $GITHUB_OUTPUT
173+ else
174+ echo "No quickstarts to test, skipping next steps!"
175+ fi
173176
174177 run-tests-on-kubernetes :
175178 name : Test on Kubernetes
You can’t perform that action at this time.
0 commit comments