1
0
telegram-action/README.md

15 lines
499 B
Markdown
Raw Normal View History

2022-04-22 16:24:09 +02:00
# telegram-notification
2023-10-21 13:12:47 +02:00
Notification to Telegram chat about Gitea Action workflow status
2022-04-22 16:28:20 +02:00
## Usage
To be notified in the Telegram chat about the results of a wokflow, add the next step to the end of your wokflow:
2023-10-21 13:12:47 +02:00
2022-04-22 16:28:20 +02:00
```yaml
- name: Send message
2023-10-21 13:12:47 +02:00
uses: action/telegram-notification@main
2022-04-22 16:28:20 +02:00
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}
```
2023-10-21 13:12:47 +02:00
Where ```chat_id``` is the chat ID and ```token``` is the token of the telegram bot