File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ FLUTTER_CHANNEL=${2:-stable}
10
10
FLUTTER_OS=$OS
11
11
12
12
# Detect the latest version
13
- if [[ $FLUTTER_VERSION == latest ]]
14
- then
15
- FLUTTER_VERSION=$( curl -s https://storage.googleapis.com/flutter_infra_release/releases/releases_$OS .json | jq -r " .releases | map(select(.channel == \" ${FLUTTER_CHANNEL} \" )) | .[0].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
16
14
fi
17
15
18
16
# OS archive file extension
You can’t perform that action at this time.
0 commit comments