Skip to content

Commit 5a2337f

Browse files
[ci] Pin the Flutter version for release (#3965)
Pins to a specific version of Flutter, rather than using a branch, to avoid issue like #3962 being surprise out-of-band failures. This does not change current behavior, as `stable` currently points to the same commit as `3.10.0`.
1 parent 2323aa4 commit 5a2337f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,18 @@ jobs:
2020
# Github Actions don't support templates so it is hard to share this snippet with another action
2121
# If we eventually need to use this in more workflow, we could create a shell script that contains this
2222
# snippet.
23+
#
24+
# This uses a pinned version of Flutter rather than `stable` so that it is
25+
# not subject to out-of-band failures when new releases happen. It does
26+
# not use the auto-rolled pin because there's no way for the autoroller
27+
# to test the actual release flow, so changes would still show up in
28+
# post-submit. A manually-rolled pin means that any changes here must be
29+
# made deliberately, so that the person updating it knows to watch the
30+
# next actual auto-release to ensure that it works, and knows to revert
31+
# the change if it doesn't.
2332
run: |
2433
cd $HOME
25-
git clone https://github.com/flutter/flutter.git --depth 1 -b stable _flutter
34+
git clone https://github.com/flutter/flutter.git --depth 1 -b 3.10.0 _flutter
2635
echo "$HOME/_flutter/bin" >> $GITHUB_PATH
2736
cd $GITHUB_WORKSPACE
2837
# Checks out a copy of the repo.

0 commit comments

Comments
 (0)