Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyassesalama committed Nov 22, 2024
1 parent b40bad2 commit 917e22d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ jobs:
- uses: actions/checkout@v4

- name: Download Artifacts for API 21
if: ${{ needs.build.outputs['apk-minApi21-debug'] }}
if: ${{ needs.build.result == 'success' }}
uses: actions/download-artifact@v4
with:
name: apk-minApi21-debug
path: ./downloaded-artifact/minApi21

- name: Download Artifacts for API 26
if: ${{ needs.build.outputs['apk-minApi26-debug'] }}
if: ${{ needs.build.result == 'success' }}
uses: actions/download-artifact@v4
with:
name: apk-minApi26-debug
Expand All @@ -120,7 +120,7 @@ jobs:
key: telegram-session-${{ runner.os }}-bot_session

- name: Send APKs to Telegram
if: ${{ success() }}
if: ${{ needs.build.result == 'success' }}
env:
API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
Expand All @@ -133,7 +133,7 @@ jobs:
continue-on-error: true

- name: Send Error Logs to Telegram
if: ${{ failure() }}
if: ${{ needs.build.result == 'failure' }}
env:
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
Expand Down

0 comments on commit 917e22d

Please sign in to comment.