mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
-11
@@ -1,16 +1,5 @@
|
||||
FROM appleboy/drone-telegram:1.4.2-linux-amd64
|
||||
|
||||
# Github labels
|
||||
LABEL "com.github.actions.name"="Telegram Notify"
|
||||
LABEL "com.github.actions.description"="Sending a Telegram message"
|
||||
LABEL "com.github.actions.icon"="message-square"
|
||||
LABEL "com.github.actions.color"="blue"
|
||||
|
||||
LABEL "repository"="https://github.com/appleboy/telegram-action"
|
||||
LABEL "homepage"="https://github.com/appleboy"
|
||||
LABEL "maintainer"="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
||||
LABEL "version"="0.0.2"
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -35,16 +35,16 @@ action "Send Default Message" {
|
||||
|
||||
## Environment variables
|
||||
|
||||
* PHOTO - Optional. photo message
|
||||
* DOCUMENT - Optional. document message
|
||||
* STICKER - Optional. sticker message
|
||||
* AUDIO - Optional. audio message
|
||||
* VOICE - Optional. voice message
|
||||
* LOCATION - Optional. location message
|
||||
* VENUE - Optional. venue message
|
||||
* VIDEO - Optional. video message
|
||||
* DEBUG - Optional. enable debug mode
|
||||
* FORMAT - Optional. `markdown` or `html`
|
||||
* photo - optional. photo message
|
||||
* document - optional. document message
|
||||
* sticker - optional. sticker message
|
||||
* audio - optional. audio message
|
||||
* voice - optional. voice message
|
||||
* location - optional. location message
|
||||
* venue - optional. venue message
|
||||
* video - optional. video message
|
||||
* debug - optional. enable debug mode
|
||||
* format - optional. `markdown` or `html`
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
name: 'Telegram Message Notify'
|
||||
description: 'Sending a Telegram message'
|
||||
author: 'Bo-Yi Wu'
|
||||
inputs:
|
||||
photo:
|
||||
description: 'send the photo message.'
|
||||
document:
|
||||
description: 'send the document message.'
|
||||
sticker:
|
||||
description: 'send the sticker message.'
|
||||
audio:
|
||||
description: 'send the audio message.'
|
||||
voice:
|
||||
description: 'send the voice message.'
|
||||
location:
|
||||
description: 'send the location message.'
|
||||
venue:
|
||||
description: 'send the venue message.'
|
||||
video:
|
||||
description: 'send the video message.'
|
||||
debug:
|
||||
description: 'enable debug mode.'
|
||||
format:
|
||||
description: 'message format: markdown or html'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
||||
branding:
|
||||
icon: 'message-square'
|
||||
color: 'blue'
|
||||
Reference in New Issue
Block a user