Skip to content

Commit e9ccc63

Browse files
committed
Skip tinyuf2 manual merge_bin if no esptool secction in board definition
1 parent 1350228 commit e9ccc63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release-offline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ jobs:
203203
id: get_tinyuf2
204204
continue-on-error: true
205205
run: |
206+
# check ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} is not empty
207+
if [ -z "${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}}" ]; then
208+
echo "Error: esptool.flashMode is not set in board definition."
209+
exit 1
210+
fi
206211
BOARD_NAME="${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}"
207212
for attempt in 1 2; do
208213
echo "Attempt $attempt: Fetching tinyuf2 release info for board $BOARD_NAME"

0 commit comments

Comments
 (0)