Project archived, please use https://github.com/appleboy/telegram-action as a better replacement.
This action wraps the Telegram postMessage for posting messages to the target chat or username of the target channel (in the format @channelusername
).
Doesn't take any arguments.
TELEGRAM_MESSAGE
: text of the message to be sent;TELEGRAM_PARSE_MODE
: useMarkdown
orHTML
, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message. Default:Markdown
.
TELEGRAM_BOT_TOKEN
: follow official documentation to know how to create your own bot and token;TELEGRAM_CHAT_ID
: unique identifier for the target chat or username of the target channel (in the format@channelusername
).
workflow "Example Workflow" {
on = "push"
resolves = "Notify"
}
action "Notify" {
uses = "docker://gr1n/the-telegram-action:master"
env = {
TELEGRAM_MESSAGE = "`my-project` build succeeded"
}
secrets = [
"TELEGRAM_BOT_TOKEN",
"TELEGRAM_CHAT_ID"
]
}