From b2c45fd729dfb24ac1dde99288b2afa7033d2b26 Mon Sep 17 00:00:00 2001 From: Oliver Koenig Date: Fri, 17 May 2024 12:52:35 +0200 Subject: [PATCH] fix Signed-off-by: Oliver Koenig --- .github/workflows/_ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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