mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-10 05:00:43 +09:00
feat: support default message
This commit is contained in:
+13
-2
@@ -1,9 +1,12 @@
|
|||||||
workflow "Send Notification" {
|
workflow "Send Notification" {
|
||||||
on = "push"
|
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"
|
uses = "appleboy/telegram-action@master"
|
||||||
secrets = [
|
secrets = [
|
||||||
"TELEGRAM_TOKEN",
|
"TELEGRAM_TOKEN",
|
||||||
@@ -11,3 +14,11 @@ action "Post message to Telegram" {
|
|||||||
]
|
]
|
||||||
args = "A new commit has been pushed."
|
args = "A new commit has been pushed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
action "Send Default Message" {
|
||||||
|
uses = "appleboy/telegram-action@master"
|
||||||
|
secrets = [
|
||||||
|
"TELEGRAM_TOKEN",
|
||||||
|
"TELEGRAM_TO",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ LABEL "homepage"="https://github.com/appleboy/telegram-action"
|
|||||||
LABEL "maintainer"="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
LABEL "maintainer"="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
||||||
LABEL "version"="0.0.1"
|
LABEL "version"="0.0.1"
|
||||||
|
|
||||||
ENV TELEGRAM_VERSION=1.4.0
|
ENV TELEGRAM_VERSION=1.4.1
|
||||||
ENV OS_ARCH=linux-amd64
|
ENV OS_ARCH=linux-amd64
|
||||||
|
|
||||||
RUN wget https://github.com/appleboy/drone-telegram/releases/download/${TELEGRAM_VERSION}/drone-telegram-${TELEGRAM_VERSION}-${OS_ARCH} -O /bin/drone-telegram
|
RUN wget https://github.com/appleboy/drone-telegram/releases/download/${TELEGRAM_VERSION}/drone-telegram-${TELEGRAM_VERSION}-${OS_ARCH} -O /bin/drone-telegram
|
||||||
|
|||||||
Reference in New Issue
Block a user