-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (29 loc) · 1010 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: tg-message-sender
description: Send message to telegram from given template
inputs:
telegram_bot_token:
description: Telegram api bot token
required: true
telegram_chat_id:
description: Telegram chat id
required: true
env_var_prefix:
description: Used environment variables preifx
default: 'TG_MSG_'
template_string:
description: String with used message template (go template)
template_base64_string:
description: String with used base64 encoded message template (go template)
log_level:
description: Action log level
default: 'info'
runs:
using: docker
image: docker://ghcr.io/sputnik-systems/tg-message-sender:v0.0.3
args:
- --tg-bot-token=${{ inputs.telegram_bot_token }}
- --tg-chat-id=${{ inputs.telegram_chat_id }}
- --env-var-prefix=${{ inputs.env_var_prefix }}
- --template-string=${{ inputs.template_string }}
- --template-base64-string=${{ inputs.template_base64_string }}
- --log-level=${{ inputs.log_level }}