Only add binary tests if they exist (#21973)

* only add binary tests if they exist

* shellcheck
This commit is contained in:
miagilepner
2023-07-20 14:36:17 +02:00
committed by GitHub
parent 3b00dde1ba
commit 245430215c

View File

@@ -138,7 +138,7 @@ jobs:
run: |
set -exo pipefail
matrix_file="matrix.json"
if [ "${{ inputs.binary-tests}}" == "true" ]; then
if [ "${{ inputs.binary-tests}}" == "true" ] && [ -n "${{ steps.list-binary-tests.outputs.list }}" ]; then
export BINARY_TESTS="${{ steps.list-binary-tests.outputs.list }}"
jq --arg BINARY "${BINARY_TESTS}" --arg BINARY_INDEX "${{ inputs.total-runners }}" \
'.include += [{