diff --git a/.github/main.workflow b/.github/main.workflow index 7ed5f36..bf86dd6 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -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", + ] +} diff --git a/Dockerfile b/Dockerfile index fabab36..d27142d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ LABEL "homepage"="https://github.com/appleboy/telegram-action" LABEL "maintainer"="Bo-Yi Wu " LABEL "version"="0.0.1" -ENV TELEGRAM_VERSION=1.4.0 +ENV TELEGRAM_VERSION=1.4.1 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