👷 Reusable telegram upload

This commit is contained in:
Nikhil Badyal
2022-10-13 21:52:28 +05:30
parent 57fde567f7
commit 56795d993e
2 changed files with 10 additions and 14 deletions
+8 -13
View File
@@ -78,18 +78,13 @@ jobs:
sleep 10
upload-to-telegram:
name: Telegram Upload
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [ build-apk ]
steps:
- name: Upload to Telegram
uses: nikhilbadyal/ghaction-telegram-uploader@main
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
with:
API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
STICKER_ID: ${{ secrets.STICKER_ID }}
uses: ./.github/workflows/telegram-uploader.yml
secrets:
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }}
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
STICKER_ID: ${{ secrets.STICKER_ID }}
+2 -1
View File
@@ -17,7 +17,8 @@ on:
jobs:
tg-upload:
timeout-minutes: 10
name: Telegram Upload
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Upload to Telegram