chore: sending a message without notification

https://github.com/appleboy/telegram-action/issues/26
This commit is contained in:
Bo-Yi Wu
2021-04-03 06:44:51 +08:00
parent f384cb685b
commit a5d86cddbc
4 changed files with 13 additions and 1 deletions
+9
View File
@@ -100,3 +100,12 @@ jobs:
disable_web_page_preview: true
message: |
disable link preview https://google.com.tw
- name: sending a message without notification
uses: ./
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
disable_notification: true
message: |
disable link preview https://google.com.tw
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appleboy/drone-telegram:1.3.8-linux-amd64
FROM appleboy/drone-telegram:linux-amd64
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
+1
View File
@@ -58,6 +58,7 @@ Remove `args` to send the default message.
* message - optional. custom message
* message_file - optional. overwrite the default message template with the contents of the specified file.
* disable_web_page_preview - optional. disables link previews for links in this message. default is `false`.
* disable_notification - optional. disables notifications for this message, supports sending a message without notification. default is `false`.
## Example
+2
View File
@@ -34,6 +34,8 @@ inputs:
description: 'message format: markdown or html'
disable_web_page_preview:
description: 'disables link previews for links in this message'
disable_notification:
description: 'disables notifications for this message, supports sending a message without notification,'
runs:
using: 'docker'
image: 'Dockerfile'