File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,22 @@ if [[ $FLUTTER_VERSION == "latest" ]]; then
1919 FLUTTER_RELEASE_MANIFEST_URL=" ${FLUTTER_RELEASE_URL} /releases_${FLUTTER_OS} .json"
2020 FLUTTER_RELEASE_MANIFEST_FILE=" ${RUNNER_TEMP} /releases_${FLUTTER_OS} .json"
2121
22- echo " You have selected to install the latest Flutter SDK version (${FLUTTER_CHANNEL} ) on \" ${FLUTTER_OS} _${FLUTTER_ARCH} \" ."
22+ echo " You have selected to install the latest Flutter SDK (${FLUTTER_CHANNEL} ) channel on \" ${FLUTTER_OS} _${FLUTTER_ARCH} \" ."
2323 echo " Attempting to determine the latest Flutter SDK version..."
24+
2425 echo " Fetching Flutter SDK release manifest..."
2526 curl --silent --connect-timeout 15 --retry 5 " $FLUTTER_RELEASE_MANIFEST_URL " -o " $FLUTTER_RELEASE_MANIFEST_FILE "
2627 if [ $? -ne 0 ]; then
2728 echo -e " ::error::Failed to fetch Flutter SDK release manifest."
2829 exit 1
2930 fi
31+
32+ # Determine the latest Flutter SDK version
3033 if [ -f " $FLUTTER_RELEASE_MANIFEST_FILE " ]; then
3134 __FLUTTER_CURRENT_RELEASE=$( jq -r " .current_release.${FLUTTER_CHANNEL} " " $FLUTTER_RELEASE_MANIFEST_FILE " )
3235 __QUERY=" select(.hash == \" ${__FLUTTER_CURRENT_RELEASE} \" and .dart_sdk_arch == \" ${ARCH} \" )"
3336 FLUTTER_VERSION=$( jq -r " .releases | map(${__QUERY} ) | .[0].version" " $FLUTTER_RELEASE_MANIFEST_FILE " )
34- if [ -z " $FLUTTER_VERSION " ]; then
37+ if [ -z " $FLUTTER_VERSION " ] || [ " $FLUTTER_VERSION " == " null " ] ; then
3538 echo -e " ::error::Failed to determine the latest Flutter SDK version."
3639 exit 1
3740 fi
You can’t perform that action at this time.
0 commit comments