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 17
17
fail-fast : false
18
18
matrix :
19
19
os : [ubuntu-latest, macos-latest, windows-latest]
20
- version :
20
+ version :
21
+ - latest
21
22
- 3.3.0
22
23
- 3.0.0
23
24
- 2.10.5
47
48
fail-fast : false
48
49
matrix :
49
50
os : [ubuntu-latest, macos-latest, windows-latest]
50
- version :
51
+ version :
52
+ - latest
51
53
- 3.3.0-0.0.pre
52
54
- 3.1.0
53
55
steps :
Original file line number Diff line number Diff line change @@ -9,6 +9,16 @@ FLUTTER_VERSION=${1:-3.0.2}
9
9
FLUTTER_CHANNEL=${2:- stable}
10
10
FLUTTER_OS=$OS
11
11
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
+
12
22
# OS archive file extension
13
23
EXT=" zip"
14
24
if [[ $OS == linux ]]
You can’t perform that action at this time.
0 commit comments