💚 Added check to avoid running GitHub Actions

This commit is contained in:
Nikhil Badyal
2022-08-25 09:40:32 +05:30
parent c7bdc2e750
commit 6c6abc3740
4 changed files with 6 additions and 8 deletions
+2 -5
View File
@@ -1,14 +1,11 @@
name: Telegram Upload
on:
workflow_run:
workflows: [ "Build Revanced APK" ]
types:
- completed
workflow_dispatch: # to trigger manually
jobs:
tg-upload:
if: ${{ inputs.TELEGRAM_API_ID }}
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
@@ -16,7 +13,7 @@ jobs:
uses: nikhilbadyal/ghaction-telegram@main
with:
github_token: ${{ secrets.GH_TOKEN }}
telegram_api_id: ${{ secrets.TELEGRAM_API_ID }}
telegram_api_id: $TG_API_ID
telegram_api_hash: ${{ secrets.TELEGRAM_API_HASH }}
telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram_chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}