File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,24 @@ steps:
122
122
- run: flutter --version
123
123
` ` `
124
124
125
+ # ## Use a Flutter mirror by set ENV
126
+
127
+ You can get more infomation from [Flutter official docs](https://docs.flutter.dev/community/china).
128
+
129
+ ` ` ` yaml
130
+ steps:
131
+ - name: Clone repository
132
+ uses: actions/checkout@v4
133
+ - name: Set up Flutter
134
+ env:
135
+ FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn
136
+ uses: subosito/flutter-action@v2
137
+ with:
138
+ channel: master
139
+ flutter-version: 5b12b74 # tag, commit or branch
140
+ - run: flutter --version
141
+ ` ` `
142
+
125
143
# ## Use alternative Flutter repository
126
144
127
145
This action supports "alternative Flutters" in addition to the official
Original file line number Diff line number Diff line change 12
12
13
13
OS_NAME=$( echo " $RUNNER_OS " | awk ' {print tolower($0)}' )
14
14
ARCH_NAME=$( echo " $RUNNER_ARCH " | awk ' {print tolower($0)}' )
15
- MANIFEST_BASE_URL=" https://storage.googleapis.com/flutter_infra_release/releases"
15
+ MANIFEST_BASE_URL=" ${FLUTTER_STORAGE_BASE_URL :- https:// storage.googleapis.com} /flutter_infra_release/releases"
16
16
MANIFEST_JSON_PATH=" releases_$OS_NAME .json"
17
17
MANIFEST_URL=" $MANIFEST_BASE_URL /$MANIFEST_JSON_PATH "
18
18
You can’t perform that action at this time.
0 commit comments