Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Gr1N/the-telegram-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the-telegram-action

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).

Use

Arguments

Doesn't take any arguments.

Environment Variables

Secrets

  • 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).

Example workflow

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"
  ]
}