File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,13 @@ FLUTTER_CHANNEL=${2:-stable}
1010FLUTTER_OS=$OS
1111
1212# Detect the latest version
13- if [[ $FLUTTER_VERSION == " latest" ]] then echo " Detecting latest version..." curl -L https://storage.googleapis.com/flutter_infra_release/releases/releases_$OS .json -o " ${RUNNER_TEMP} /flutter_release.json" CURRENT_RELEASE=$( jq -r " .current_release.${FLUTTER_CHANNEL} " " ${RUNNER_TEMP} /flutter_release.json" ) FLUTTER_VERSION=$( jq -r " .releases | map(select(.hash == \" ${CURRENT_RELEASE} \" )) | .[0].version" " ${RUNNER_TEMP} /flutter_release.json" ) rm " ${RUNNER_TEMP} /flutter_release.json" fi
13+ if [[ $FLUTTER_VERSION == " latest" ]]
14+ then
15+ echo " Detecting latest version..."
16+ curl -L https://storage.googleapis.com/flutter_infra_release/releases/releases_$OS .json -o " ${RUNNER_TEMP} /flutter_release.json"
17+ CURRENT_RELEASE=$( jq -r " .current_release.${FLUTTER_CHANNEL} " " ${RUNNER_TEMP} /flutter_release.json" )
18+ FLUTTER_VERSION=$( jq -r " .releases | map(select(.hash == \" ${CURRENT_RELEASE} \" )) | .[0].version" " ${RUNNER_TEMP} /flutter_release.json" )
19+ rm " ${RUNNER_TEMP} /flutter_release.json"
1420fi
1521
1622# OS archive file extension
You can’t perform that action at this time.
0 commit comments