From 5f70423b943b0bab00aa77c5453af6d35d8589be Mon Sep 17 00:00:00 2001 From: Jeb <130810521+jebarpg@users.noreply.github.com> Date: Sat, 3 Aug 2024 19:23:53 -0700 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b0886f7..506e45b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,10 +17,10 @@ if [ -f "${APK_FILES[0]}" ]; then rename 's/-/_/' "$f" done if hub release edit -a ./${APP_FOLDER}/build/outputs/apk/release/**_signed.apk -m "" v${VERSION_NUMBER}; then - echo updated + echo added APK release else # if the release doesn't exist then create it - echo created + echo created APK release hub release create -a ./${APP_FOLDER}/build/outputs/apk/release/**_signed.apk -m "v${VERSION_NUMBER}" v${VERSION_NUMBER} fi fi @@ -37,5 +37,10 @@ if [ -f "${AAB_FILES[0]}" ]; then for f in "${CHANGED_AAB_FILES[@]}"; do rename 's/-/_/' "$f" done - hub release edit -a ./${APP_FOLDER}/build/outputs/bundle/release/**_signed.aab -m "" v${VERSION_NUMBER} + if hub release edit -a ./${APP_FOLDER}/build/outputs/bundle/release/**_signed.aab -m "" v${VERSION_NUMBER}; then + echo added AAB release + else + echo created AAB release + hub release create -a ./${APP_FOLDER}/build/outputs/bundle/release/**_signed.aab -m "v${VERSION_NUMBER}" v${VERSION_NUMBER} + fi fi