mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-12-02 07:35:30 +09:00
feat: support default message
This commit is contained in:
1 parent
4279b287d4
commit
4025d6255a
2 files changed
+14
-3
No files matched your search
+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