Skip to content

Commit 1095e13

Browse files
committed
Adjust offline board folder name logic
1 parent d39468e commit 1095e13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-offline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,19 @@ jobs:
195195
board_name=${board_name#wippersnapper_}
196196
# check folder name exists, otherwise do replace of underscore with dash, or blank
197197
if [ ! -d "ws-boards/boards/${board_name}" ]; then
198+
echo "Board definition folder ws-boards/boards/${board_name} does not exist, checking for alternative names."
198199
if [ -d "ws-boards/boards/${board_name//_/-}" ]; then
199200
board_name=${board_name//_/-}
201+
echo "Found alternative board definition folder ws-boards/boards/${board_name//_/-}."
200202
elif [ -d "ws-boards/boards/${board_name//_//}" ]; then
201203
board_name=${board_name//_//}
204+
echo "Found alternative board definition folder ws-boards/boards/${board_name//_//}."
202205
else
203206
echo "Error: Board definition folder ws-boards/boards/${board_name} does not exist."
204207
exit 1
205208
fi
206209
fi
207-
# check again if folder exists, otherwise replace underscore with blank
208-
content=$(cat ws-boards/boards/${board_name//_/-}/definition.json)
210+
content=$(cat ws-boards/boards/${board_name}/definition.json)
209211
{
210212
echo 'boardJson<<EOF'
211213
echo $content

0 commit comments

Comments
 (0)