diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..8ff3786 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,13 @@ +workflow "Send Notification" { + on = "push" + resolves = ["Post message to Telegram"] +} + +action "Post message to Telegram" { + uses = "appleboy/telegram-action@master" + secrets = [ + "TELEGRAM_TOKEN", + "TELEGRAM_TO", + ] + args = "Hello World" +} diff --git a/README.md b/README.md index 7a30148..5059232 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # 🚀 Telegram for GitHub Actions [GitHub Action](https://developer.github.com/actions/) for sending a Telegram notification message. + +## Usage + +``` +action "Post message to Telegram" { + uses = "appleboy/telegram-action@master" + secrets = [ + "TELEGRAM_TOKEN", + "TELEGRAM_TO", + ] + args = "Hello World" +} +```