TP-71465 | Error handling in generate apk action

This commit is contained in:
yashmantri
2024-09-09 20:42:30 +05:30
parent 9d013b6a62
commit 7be0641027

View File

@@ -132,6 +132,8 @@ jobs:
apk_path="./android/app/build/outputs/apk/${{ github.event.inputs.flavor || inputs.flavor }}${{github.event.inputs.environment || inputs.environment}}/${{github.event.inputs.type || inputs.type}}/app-${{ github.event.inputs.flavor || inputs.flavor }}${{github.event.inputs.environment || inputs.environment}}-release.apk"
echo "$apk_path"
# Check if APK exists, exit if not
if [ ! -f "$apk_path" ]; then
echo "Error: APK file not found at $apk_path"