Skip to content

Commit c3a8a18

Browse files
committed
add debug logs
1 parent 0294105 commit c3a8a18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/scripts/find_new_boards.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ diff=$(diff -u boards.txt boards_pr.txt)
2323
# Extract added or modified lines (lines starting with '+' or '-')
2424
modified_lines=$(echo "$diff" | grep -E '^[+-][^+-]')
2525

26+
# Print the modified lines
27+
echo "Modified lines:"
28+
echo "$modified_lines"
29+
2630
boards_array=()
2731
previous_board=""
2832

@@ -43,6 +47,13 @@ do
4347
fi
4448
done <<< "$modified_lines"
4549

50+
# Print all boards found
51+
echo "Boards found:"
52+
for board in ${boards_array[@]}
53+
do
54+
echo $board
55+
done
56+
4657
# Create JSON like string with all boards found and pass it to env variable
4758
board_count=${#boards_array[@]}
4859

0 commit comments

Comments
 (0)