Allows you to configure the delivery of messages about the build process to Telegram
chat_id
is required - unique identifier for the target chat or username of the target channel;token
is required - telegram bot token;status
is required - status of workflow;parse_mode
is optional - mode for parsing entities in the message text (could bemarkdown
ormarkdown2
orhtml
);disable_links_preview
is optional - disables link previews for links in this message (true
orfalse
);- message is optional - text of the message to be sent, 1-4096 characters after entities parsing.
notify:
name: Notify
needs:
# should contain all previous jobs to run after all of them
runs-on: ubuntu-latest
if: always() # to run whether workflow is successful or not
steps:
- uses: martialonline/workflow-status@v2
id: check
- uses: KlyuchnikovV/telegram-notify@v0.2
if: always()
with:
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
status: ${{ steps.check.outputs.status }}
parse_mode: markdown
disable_links_preview: true