File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1717 fail-fast : false
1818 matrix :
1919 os : [ubuntu-latest, macos-latest, windows-latest]
20- version :
20+ version :
21+ - latest
2122 - 3.3.0
2223 - 3.0.0
2324 - 2.10.5
4748 fail-fast : false
4849 matrix :
4950 os : [ubuntu-latest, macos-latest, windows-latest]
50- version :
51+ version :
52+ - latest
5153 - 3.3.0-0.0.pre
5254 - 3.1.0
5355 steps :
Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ FLUTTER_VERSION=${1:-3.0.2}
99FLUTTER_CHANNEL=${2:- stable}
1010FLUTTER_OS=$OS
1111
12+ # Detect the latest version
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"
20+ fi
21+
1222# OS archive file extension
1323EXT=" zip"
1424if [[ $OS == linux ]]
You can’t perform that action at this time.
0 commit comments