You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Notify Telegram Action
v1.3
GitHub Action for sending a Telegram notification message.
This action send a message via Telegram when there is a push/release.
Send a default message on push/release event:
name: Notify
on:
push:
release:
types: [published]
jobs:
notify:
name: Notify via Telegram
runs-on: ubuntu-latest
steps:
- name: Send message to Telegram
uses: Lukasss93/telegram-action@v1
env:
TELEGRAM_TOKEN: ${{ secrets.telegram_token }}
TELEGRAM_CHAT: ${{ secrets.telegram_chat }}
with:
STATUS: ${{job.status}} # Required for accessing the status of certain job
footer: 'Append a message to default message' # Optional
message: 'Override the default message (footer included)' # Optional
- TELEGRAM_TOKEN
string
- Telegram authorization token - TELEGRAM_CHAT
string
- Unique identifier chat
How to get a telegram token: BotFather
How to get a telegram chat identifier:
- Forward a message from the target chat to @JsonDumpBot
- Copy the message ➡ forward_from_chat ➡ id
- STATUS required
${{job.status}}
- footer optional
string
- Append a message to default message - message optional
string
- Override the default message (footer included)
[status emoji] [author/repo¹] • [actor] • [hash²]
Commit message
¹ with repo link
² with hash link
It supports multiple commits in a unique message.
New author/repo release¹: tag² (type³)
Tag message
¹ with tag link
² tag name
³ beta if it's a pre-release otherwise stable