Skip to content

Commit 187623c

Browse files
committed
Support metro s3 dashed target name (no dash in folder name)
1 parent e9ccc63 commit 187623c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release-offline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,18 @@ jobs:
193193
board_name=${board_name%_noota}
194194
# Remove 'wippersnapper_' prefix if present
195195
board_name=${board_name#wippersnapper_}
196+
# check folder name exists, otherwise do replace of underscore with dash, or blank
197+
if [ ! -d "ws-boards/boards/${board_name}" ]; then
198+
if [ -d "ws-boards/boards/${board_name//_/-}" ]; then
199+
board_name=${board_name//_/-}
200+
elif [ -d "ws-boards/boards/${board_name//_//}" ]; then
201+
board_name=${board_name//_//}
202+
else
203+
echo "Error: Board definition folder ws-boards/boards/${board_name} does not exist."
204+
exit 1
205+
fi
206+
fi
207+
# check again if folder exists, otherwise replace underscore with blank
196208
content=$(cat ws-boards/boards/${board_name//_/-}/definition.json)
197209
{
198210
echo 'boardJson<<EOF'

0 commit comments

Comments
 (0)