chore(workflow): add test message

This commit is contained in:
Bo-Yi Wu
2019-02-20 00:23:44 +08:00
parent cc9853533f
commit 1274de63b5
+8 -6
View File
@@ -2,7 +2,8 @@ workflow "Send Notification" {
on = "push" on = "push"
resolves = [ resolves = [
"Send Custom Message", "Send Custom Message",
"Send Default Message" "Send Default Message",
"Send Photo Message",
] ]
} }
@@ -23,14 +24,15 @@ action "Send Default Message" {
] ]
} }
action "Send photo message" { action "Send Photo Message" {
uses = "appleboy/telegram-action@master" uses = "appleboy/telegram-action@master"
env = {
PHOTO = "tests/github.png"
DOCUMENT = "tests/gophercolor.png"
}
secrets = [ secrets = [
"TELEGRAM_TOKEN", "TELEGRAM_TOKEN",
"TELEGRAM_TO", "TELEGRAM_TO",
] ]
env = { args = "send photo message."
PHOTO = "tests/github.png"
}
args = "A new commit has been pushed."
} }