Skip to content

Commit

Permalink
The action is no longer exit when dart or flutter binary not foun…
Browse files Browse the repository at this point in the history
…d but warning instead
  • Loading branch information
socheatsok78 committed Dec 16, 2024
1 parent 902788b commit 5c5f9e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ if [[ -z "${ACTIONS_ID_TOKEN_REQUEST_URL}" ]] && [[ -z "${ACTIONS_ID_TOKEN_REQUE
exit 0
fi

if [ ! "$(command -v dart)" ] && [ ! "$(command -v flutter)" ]; then
echo "::error::Flutter is not installed,"
echo "See https://github.com/flutter-actions/setup-flutter for more details."
exit 1
if [ ! "$(command -v dart)" ]; then
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.'
fi
if [ ! "$(command -v flutter)" ]; then
echo '::warning title=Flutter is not installed::Please use "uses: flutter-actions/setup-flutter@v4" to setup Dart & Flutter SDK.'
fi

INPUT_GITHUB_OIDC_AUDIENCE="https://pub.dev"
Expand Down

0 comments on commit 5c5f9e3

Please sign in to comment.