Skip to content

Commit 5c5f9e3

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

action.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ 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."
11-
exit 1
8+
if [ ! "$(command -v dart)" ]; then
9+
echo '::warning title=Dark is not installed::Please use "uses: dart-lang/setup-dart@v1" or "uses: flutter-actions/setup-flutter@v4" to setup Dart or Flutter SDK.'
10+
fi
11+
if [ ! "$(command -v flutter)" ]; then
12+
echo '::warning title=Flutter is not installed::Please use "uses: flutter-actions/setup-flutter@v4" to setup Dart & Flutter SDK.'
1213
fi
1314

1415
INPUT_GITHUB_OIDC_AUDIENCE="https://pub.dev"

0 commit comments

Comments
 (0)