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