From a170e621ebe048ba090bf7405e7b8b1802053318 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Thu, 19 Sep 2024 18:26:34 -0700 Subject: [PATCH] fix condition Signed-off-by: Yury-Fridlyand --- .github/workflows/create-test-matrices/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-test-matrices/action.yml b/.github/workflows/create-test-matrices/action.yml index 626700bcb4..6c64fb2288 100644 --- a/.github/workflows/create-test-matrices/action.yml +++ b/.github/workflows/create-test-matrices/action.yml @@ -51,7 +51,7 @@ runs: id: load-host-matrix shell: bash run: | - CONDITION=$([ ${{ inputs.containers }} == "true" ] ? ".IMAGE?" : ".IMAGE == null" ) + [[ ${{ inputs.containers }} == true ]] && CONDITION=".IMAGE?" || CONDITION=".IMAGE == null" echo 'Select runners (VMs) to run tests on' if [[ "${{ github.event_name }}" == "pull_request" || "${{ github.event_name }}" == "push" || "${{ inputs.run-full-matrix }}" == "false" ]]; then echo 'Pick runners marked as '"run": "always"' only - on PR, push or manually triggered job which does not require full matrix'