|
3 | 3 | build_all=false |
4 | 4 | chunks_count=0 |
5 | 5 | last_check_files="" |
| 6 | +last_check_result="" |
6 | 7 |
|
7 | 8 | # Define the file patterns |
8 | 9 | core_files=( |
@@ -69,22 +70,27 @@ check_files() { |
69 | 70 |
|
70 | 71 | last_check_files=$(echo "$files_found" | xargs) |
71 | 72 | if [[ -n $last_check_files ]]; then |
72 | | - echo 'true' |
| 73 | + last_check_result="true" |
73 | 74 | else |
74 | | - echo 'false' |
| 75 | + last_check_result="false" |
75 | 76 | fi |
| 77 | + echo "last_check_result: $last_check_result" |
76 | 78 | } |
77 | 79 |
|
78 | 80 | # Output the results |
79 | 81 | check_files "${core_files[@]}" |
| 82 | +CORE_CHANGED=$last_check_result |
80 | 83 | check_files "${library_files[@]}" |
| 84 | +LIB_CHANGED=$last_check_result |
81 | 85 | LIB_FILES=$last_check_files |
82 | | -echo "Lib Files changed: $LIB_FILES" |
83 | | -echo "last_check_files: $last_check_files" |
84 | | -NETWORKING_CHANGED=$(check_files "${networking_files[@]}") |
85 | | -FS_CHANGED=$(check_files "${fs_files[@]}") |
86 | | -STATIC_SKETCHES_CHANGED=$(check_files "${static_sketches_files[@]}") |
87 | | -IDF_CHANGED=$(check_files "${idf_files[@]}") |
| 86 | +check_files "${networking_files[@]}" |
| 87 | +NETWORKING_CHANGED=$last_check_result |
| 88 | +check_files "${fs_files[@]}" |
| 89 | +FS_CHANGED=$last_check_result |
| 90 | +check_files "${static_sketches_files[@]}" |
| 91 | +STATIC_SKETCHES_CHANGED=$last_check_result |
| 92 | +check_files "${idf_files[@]}" |
| 93 | +IDF_CHANGED=$last_check_result |
88 | 94 |
|
89 | 95 | if [[ $CORE_CHANGED == 'true' ]] || [[ $IS_PR != 'true' ]]; then |
90 | 96 | echo "Core files changed or not a PR. Building all." |
|
0 commit comments