Skip to content

Commit 470f8bd

Browse files
committed
Attempt to remove the "Welcome to Flutter" banner
1 parent 6244920 commit 470f8bd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

action.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,13 @@ echo "PUB_CACHE=${FLUTTER_PUB_CACHE}" >> $GITHUB_ENV
110110
echo "${FLUTTER_PUB_CACHE}/bin" >> $GITHUB_PATH
111111
echo "${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin" >> $GITHUB_PATH
112112

113+
# Invoke Flutter SDK to suppress the analytics.
114+
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter --version --suppress-analytics > /dev/null
115+
113116
# Disable Google Analytics and CLI animations
114117
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-analytics
115118
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config --no-cli-animations
116119

117-
# Print Flutter config
118-
echo "Flutter config:"
119-
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/flutter config
120-
121120
# Report success, and print version.
122121
echo -e "Succesfully installed Flutter SDK:"
123122
${FLUTTER_RUNNER_TOOL_CACHE}/flutter/bin/dart --version

0 commit comments

Comments
 (0)