Files
telegram-action/.github/main.workflow
T
2019-02-20 00:05:13 +08:00

39 lines
713 B
HCL

workflow "Send Notification" {
on = "push"
resolves = [
"Send Custom Message",
"Send Default Message",
"Send Photo Message",
]
}
action "Send Custom Message" {
uses = "appleboy/telegram-action@master"
secrets = [
"TELEGRAM_TOKEN",
"TELEGRAM_TO",
]
args = "A new commit has been pushed."
}
action "Send Default Message" {
uses = "appleboy/telegram-action@master"
secrets = [
"TELEGRAM_TOKEN",
"TELEGRAM_TO",
]
}
action "Send Photo message" {
uses = "appleboy/telegram-action@master"
env = {
PHOTO = "tests/github.png",
DOCUMENT = "tests/gophercolor.png",
}
secrets = [
"TELEGRAM_TOKEN",
"TELEGRAM_TO",
]
args = "send photo message."
}