Skip to content

Commit 8890a60

Browse files
committed
fix(idf_version): Add error if IDF version is not found
1 parent c0800c7 commit 8890a60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/scripts/update-version.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ ESP_ARDUINO_VERSION="$ESP_ARDUINO_VERSION_MAJOR.$ESP_ARDUINO_VERSION_MINOR.$ESP_
2626

2727
# Get ESP-IDF version from push.yml (this way we can ensure that the version is correct even if the local libs are not up to date)
2828
ESP_IDF_VERSION=$(grep "idf_ver:" .github/workflows/push.yml | sed 's/.*release-v\([^"]*\).*/\1/')
29+
if [ -z "$ESP_IDF_VERSION" ]; then
30+
echo "Error: ESP-IDF version not found in push.yml" >&2
31+
exit 1
32+
fi
2933

3034
echo "New Arduino Version: $ESP_ARDUINO_VERSION"
3135
echo "ESP-IDF Version: $ESP_IDF_VERSION"

0 commit comments

Comments
 (0)