feat: introduce Telegram bot token and chat ID as action inputs

This commit is contained in:
2025-12-29 16:45:15 +07:00
parent 72836873c7
commit 19ba568834

View File

@@ -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