File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,23 +43,14 @@ jobs:
4343 - name : Explore build directory
4444 run : ls -R .
4545
46- - name : Explore output directories
47- run : |
48- echo "Exploring build output directories..."
49- ls -R app/build/outputs/apk/ || echo "No APKs found in app/"
50- ls -R claimManagement/build/outputs/apk/ || echo "No APKs found in claimManagement/"
51-
52- - name : Verify APK Path
53- run : ls -l claimManagement/build/outputs/apk/bephaDev/debug/
54-
5546 - name : Rename APK
5647 run : mv claimManagement/build/outputs/apk/bephaDev/debug/*.apk claims-comores-test.apk || echo "APK not found"
5748
5849 - name : List APK files
5950 run : ls -l claims-comores-test.apk || echo "APK not found"
6051
6152 - name : Upload APK
62- if : success()
53+ if : success() && steps.rename_apk.outcome == 'success'
6354 uses : actions/upload-artifact@v4
6455 with :
6556 name : claims-comores-test.apk
You can’t perform that action at this time.
0 commit comments