Skip to content

Commit a2eaf1d

Browse files
committed
ci(boards): Move variable to global and clear logs
1 parent 188702b commit a2eaf1d

File tree

3 files changed

+4
-81
lines changed

3 files changed

+4
-81
lines changed

.github/scripts/validate_board.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
set -e
77

8+
# Required properties for all boards
9+
REQUIRED_PROPERTIES=("upload.flags" "upload.extra_flags")
10+
811
# Function to print output
912
print_error() {
1013
echo "Error: $1"
@@ -100,10 +103,9 @@ validate_required_properties() {
100103
local board_name="$1"
101104
local boards_file="$2"
102105

103-
local required_props=("upload.flags" "upload.extra_flags")
104106
local missing_props=()
105107

106-
for prop in "${required_props[@]}"; do
108+
for prop in "${REQUIRED_PROPERTIES[@]}"; do
107109
if ! grep -q "^$board_name.$prop=" "$boards_file"; then
108110
missing_props+=("$prop")
109111
fi

validation_summary_20251006_164352.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

validation_summary_20251006_164403.txt

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)