Skip to content

Commit cd90d54

Browse files
committed
The action is no longer exit when flutter binary not found but warning instead
1 parent 902788b commit cd90d54

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

action.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ if [[ -z "${ACTIONS_ID_TOKEN_REQUEST_URL}" ]] && [[ -z "${ACTIONS_ID_TOKEN_REQUE
55
exit 0
66
fi
77

8-
if [ ! "$(command -v dart)" ] && [ ! "$(command -v flutter)" ]; then
9-
echo "::error::Flutter is not installed,"
10-
echo "See https://github.com/flutter-actions/setup-flutter for more details."
8+
# Check if Dart & Flutter SDK is installed
9+
if [ ! "$(command -v flutter)" ]; then
10+
echo '::warning::Flutter is not installed,'
11+
echo 'Please use "uses: flutter-actions/setup-flutter@v4" to setup Dart & Flutter SDK.'
12+
fi
13+
if [ ! "$(command -v dart)" ]; then
14+
echo '::error::Dark is not installed'
15+
echo 'Please use "uses: dart-lang/setup-dart@v1" or "uses: flutter-actions/setup-flutter@v4" to setup Dart or Flutter SDK.'
1116
exit 1
1217
fi
1318

0 commit comments

Comments
 (0)