mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
43 lines
749 B
HCL
43 lines
749 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",
|
|
]
|
|
env = {
|
|
A = "A"
|
|
B = "B"
|
|
}
|
|
}
|
|
|
|
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."
|
|
}
|