diff --git a/.github/scripts/check-patterns.sh b/.github/scripts/check-patterns.sh index 7b8c2b1..836032c 100755 --- a/.github/scripts/check-patterns.sh +++ b/.github/scripts/check-patterns.sh @@ -47,7 +47,7 @@ for pattern in ${BUILDER_2204_PATTERNS[@]}; do done run_contrib="0" -if $run_tc || $run_2204; then +if [[ "$run_tc" == "1" ]] || [[ "$run_2204" == "1" ]]; then run_contrib="1" else for pattern in ${CONTRIB_PATTERNS[@]}; do diff --git a/.github/workflows/_dispatcher.yml b/.github/workflows/_dispatcher.yml index 513fc01..79d537c 100644 --- a/.github/workflows/_dispatcher.yml +++ b/.github/workflows/_dispatcher.yml @@ -60,7 +60,7 @@ jobs: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | necessary_jobs=$(./.github/scripts/check-patterns.sh "$ALL_CHANGED_FILES") - read -r run_tc run_2004 run_2204 run_contrib <<< "$output" + read -r run_tc run_2004 run_2204 run_contrib <<< "$necessary_jobs" echo "run_tc=${run_tc}" >> $GITHUB_OUTPUT echo "run_2004=${run_2004}" >> $GITHUB_OUTPUT echo "run_2204=${run_2204}" >> $GITHUB_OUTPUT