mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
feat: support default message
This commit is contained in:
+13
-2
@@ -1,9 +1,12 @@
|
||||
workflow "Send Notification" {
|
||||
on = "push"
|
||||
resolves = ["Post message to Telegram"]
|
||||
resolves = [
|
||||
"Send Custom Message",
|
||||
"Send Default Message"
|
||||
]
|
||||
}
|
||||
|
||||
action "Post message to Telegram" {
|
||||
action "Send Custom Message" {
|
||||
uses = "appleboy/telegram-action@master"
|
||||
secrets = [
|
||||
"TELEGRAM_TOKEN",
|
||||
@@ -11,3 +14,11 @@ action "Post message to Telegram" {
|
||||
]
|
||||
args = "A new commit has been pushed."
|
||||
}
|
||||
|
||||
action "Send Default Message" {
|
||||
uses = "appleboy/telegram-action@master"
|
||||
secrets = [
|
||||
"TELEGRAM_TOKEN",
|
||||
"TELEGRAM_TO",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user