From e7e2d8b1ebea8005a7a3f06404a96e0f32e97806 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 17 Feb 2019 11:21:14 +0800 Subject: [PATCH] feat: add work flow --- .github/main.workflow | 13 +++++++++++++ README.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/main.workflow 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" +} +```