From 37f7424a6ea14f28f1c259fa18d30aac2380c4a1 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sat, 14 Dec 2019 18:41:02 +0000 Subject: [PATCH] chore: fail script when not deployment not successful --- scripts/upload-apk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upload-apk.sh b/scripts/upload-apk.sh index c7d07df0a..0ee6431a0 100755 --- a/scripts/upload-apk.sh +++ b/scripts/upload-apk.sh @@ -37,6 +37,9 @@ git push origin apk --force --quiet > /dev/null if [[ $TRAVIS_BRANCH =~ ^(master)$ ]]; then cd .. bundle exec fastlane uploadToPlaystore + if [[ $? -ne 0 ]]; then + exit 1 + fi exit 0 fi