Skip to content

Commit 90c3f86

Browse files
committed
(General) Update workflows
1 parent 1382f5f commit 90c3f86

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
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

0 commit comments

Comments
 (0)