File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 7979 rm -f ~/.gradle/caches/modules-2/modules-2.lock
8080 rm -f ~/.gradle/caches/modules-2/gc.properties
8181
82- generate_and_deploy_apk :
82+ apk :
8383 name : Generate and Deploy APK
8484 runs-on : ubuntu-latest
8585 needs :
@@ -108,16 +108,16 @@ jobs:
108108 with :
109109 name : previous_apk_hash
110110 path : previous_apk_hash.txt
111+ if : always()
111112
112113 - name : Compare Hashes
113114 id : compare_hashes
114115 run : |
115- if [ -f "previous_apk_hash.txt" ]; then
116- PREVIOUS_HASH=$(cat previous_apk_hash.txt)
117- if [ "$PREVIOUS_HASH" = "${{ steps.hash_new_apk.outputs.hash }}" ]; then
118- echo "APK has not changed. Exiting."
119- exit 0
120- fi
116+ if [ ! -f "previous_apk_hash.txt" ]; then
117+ echo "No previous APK hash found. Continuing..."
118+ elif [ "$(cat previous_apk_hash.txt)" = "${{ steps.hash_new_apk.outputs.hash }}" ]; then
119+ echo "APK has not changed. Exiting."
120+ exit 0
121121 fi
122122 echo "${{ steps.hash_new_apk.outputs.hash }}" > previous_apk_hash.txt
123123
You can’t perform that action at this time.
0 commit comments