feat: introduce Telegram bot token and chat ID as action inputs
This commit is contained in:
12
action.yml
12
action.yml
@@ -46,6 +46,14 @@ inputs:
|
|||||||
description: 'Gmail App Password'
|
description: 'Gmail App Password'
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
# Telegram Configuration
|
||||||
|
telegram_bot_token:
|
||||||
|
description: 'Telegram Bot Token'
|
||||||
|
required: false
|
||||||
|
telegram_chat_id:
|
||||||
|
description: 'Telegram Chat ID'
|
||||||
|
required: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
@@ -72,7 +80,7 @@ runs:
|
|||||||
GMAIL_PASS: ${{ inputs.gmail_password || secrets.GMAIL_APP_PASSWORD }}
|
GMAIL_PASS: ${{ inputs.gmail_password || secrets.GMAIL_APP_PASSWORD }}
|
||||||
|
|
||||||
# Telegram
|
# Telegram
|
||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ inputs.telegram_bot_token || secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ inputs.telegram_chat_id || secrets.TELEGRAM_CHAT_ID }}
|
||||||
run: |
|
run: |
|
||||||
bash ${{ github.action_path }}/notify.sh
|
bash ${{ github.action_path }}/notify.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user