mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
chore: sending a message without notification
https://github.com/appleboy/telegram-action/issues/26
This commit is contained in:
@@ -100,3 +100,12 @@ jobs:
|
|||||||
disable_web_page_preview: true
|
disable_web_page_preview: true
|
||||||
message: |
|
message: |
|
||||||
disable link preview https://google.com.tw
|
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
@@ -1,4 +1,4 @@
|
|||||||
FROM appleboy/drone-telegram:1.3.8-linux-amd64
|
FROM appleboy/drone-telegram:linux-amd64
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ Remove `args` to send the default message.
|
|||||||
* message - optional. custom message
|
* message - optional. custom message
|
||||||
* message_file - optional. overwrite the default message template with the contents of the specified file.
|
* 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_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
|
## Example
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ inputs:
|
|||||||
description: 'message format: markdown or html'
|
description: 'message format: markdown or html'
|
||||||
disable_web_page_preview:
|
disable_web_page_preview:
|
||||||
description: 'disables link previews for links in this message'
|
description: 'disables link previews for links in this message'
|
||||||
|
disable_notification:
|
||||||
|
description: 'disables notifications for this message, supports sending a message without notification,'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
|||||||
Reference in New Issue
Block a user