fix gmail
This commit is contained in:
17
action.yml
17
action.yml
@@ -24,7 +24,6 @@ inputs:
|
||||
ntfy_username:
|
||||
description: 'Ntfy Basic Auth Username'
|
||||
required: false
|
||||
default: 'homesrv'
|
||||
ntfy_password:
|
||||
description: 'Ntfy Basic Auth Password'
|
||||
required: false
|
||||
@@ -37,11 +36,9 @@ inputs:
|
||||
gmail_user:
|
||||
description: 'Gmail username (sender)'
|
||||
required: false
|
||||
default: 'sitienbmt@gmail.com'
|
||||
gmail_to:
|
||||
description: 'Email recipient'
|
||||
required: false
|
||||
default: 'sitienbmt@gmail.com'
|
||||
gmail_password:
|
||||
description: 'Gmail App Password'
|
||||
required: false
|
||||
@@ -70,17 +67,17 @@ runs:
|
||||
# Ntfy
|
||||
NTFY_URL: ${{ inputs.ntfy_url || 'https://ntfy.hcmc.online' }}
|
||||
NTFY_TOPIC: ${{ inputs.ntfy_topic || 'act_runner_deployment' }}
|
||||
NTFY_USERNAME: ${{ inputs.ntfy_username || 'homesrv' }}
|
||||
NTFY_PASSWORD: ${{ inputs.ntfy_password || secrets.NTFY_PASSWORD }}
|
||||
NTFY_USERNAME: ${{ inputs.ntfy_username || env.NTFY_USERNAME }}
|
||||
NTFY_PASSWORD: ${{ inputs.ntfy_password || env.NTFY_PASSWORD }}
|
||||
GIT_URL: ${{ inputs.server_url || 'https://git.hcmc.online' }}
|
||||
|
||||
# Gmail
|
||||
GMAIL_USER: ${{ inputs.gmail_user || 'sitienbmt@gmail.com' }}
|
||||
GMAIL_TO: ${{ inputs.gmail_to || 'sitienbmt@gmail.com' }}
|
||||
GMAIL_PASS: ${{ inputs.gmail_password || secrets.GMAIL_APP_PASSWORD }}
|
||||
GMAIL_USER: ${{ inputs.gmail_user || env.GMAIL_USER }}
|
||||
GMAIL_TO: ${{ inputs.gmail_to || 'tienngodev@proton.me' }}
|
||||
GMAIL_PASS: ${{ inputs.gmail_password || env.GMAIL_PASSWORD }}
|
||||
|
||||
# Telegram
|
||||
TELEGRAM_BOT_TOKEN: ${{ inputs.telegram_bot_token || secrets.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ inputs.telegram_chat_id || secrets.TELEGRAM_CHAT_ID }}
|
||||
TELEGRAM_BOT_TOKEN: ${{ inputs.telegram_bot_token || env.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ inputs.telegram_chat_id || env.TELEGRAM_BOT_CHATID }}
|
||||
run: |
|
||||
bash ${{ github.action_path }}/notify.sh
|
||||
|
||||
Reference in New Issue
Block a user