diff --git a/.github/workflows/_ci.yaml b/.github/workflows/_ci.yaml index c35fa4e4f..fa2de87e6 100644 --- a/.github/workflows/_ci.yaml +++ b/.github/workflows/_ci.yaml @@ -89,13 +89,16 @@ jobs: local list_of_items="$1" # The list of items as a string IFS=' ' read -a test_subsets <<< "${{ steps.validate.outputs.test_subset }}" + contains=0 for test_subset in "${test_subsets[@]}"; do if [[ $test_subset == "" || "$list_of_items" != *"$test_subset"* ]]; then - echo "false" + contains=$(( $contains | 0 )) else - echo "true" + contains=$(( $contains | 1 )) fi done + + [[ $contains -eq 1 ]] && echo "true" || echo "false" } echo BUILD_TRITON=$(if_testset_in "base jax triton") >> $GITHUB_OUTPUT