From 19ba5688340c6783f72e8ebcc942148253f78cfa Mon Sep 17 00:00:00 2001 From: Tien Ngo Date: Mon, 29 Dec 2025 16:45:15 +0700 Subject: [PATCH] feat: introduce Telegram bot token and chat ID as action inputs --- action.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 615642e..b6f4f0d 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,14 @@ inputs: gmail_password: description: 'Gmail App Password' required: false + + # Telegram Configuration + telegram_bot_token: + description: 'Telegram Bot Token' + required: false + telegram_chat_id: + description: 'Telegram Chat ID' + required: false @@ -72,7 +80,7 @@ runs: GMAIL_PASS: ${{ inputs.gmail_password || secrets.GMAIL_APP_PASSWORD }} # Telegram - TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} - TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} + TELEGRAM_BOT_TOKEN: ${{ inputs.telegram_bot_token || secrets.TELEGRAM_BOT_TOKEN }} + TELEGRAM_CHAT_ID: ${{ inputs.telegram_chat_id || secrets.TELEGRAM_CHAT_ID }} run: | bash ${{ github.action_path }}/notify.sh