Skip to content

Commit 97805ec

Browse files
committed
Make curl fail properly with bad http status codes
1 parent 8764cd6 commit 97805ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
BOARD_NAME="${{fromJson(steps.get_board_json.outputs.boardJson).bootloaderBoardName}}"
155155
for attempt in 1 2; do
156156
echo "Attempt $attempt: Fetching tinyuf2 release info for board $BOARD_NAME"
157-
API_RESPONSE=$(curl -s https://api.github.com/repos/adafruit/tinyuf2/releases/latest)
157+
API_RESPONSE=$(curl --silent --fail https://api.github.com/repos/adafruit/tinyuf2/releases/latest)
158158
if [ $? -ne 0 ]; then
159159
echo "Attempt $attempt: curl failed to fetch release info."
160160
if [ "$attempt" -eq 2 ]; then exit 1; else sleep 2; continue; fi

0 commit comments

Comments
 (0)