mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae54341a85 | |||
| 70b64f5beb | |||
| 7347add3d3 | |||
| 6c7afcc8db | |||
| 372c737013 | |||
| 1b52d8d894 | |||
| cc9853533f | |||
| 177c9a4bdc | |||
| 55cc55bcf2 |
+15
-1
@@ -2,7 +2,8 @@ workflow "Send Notification" {
|
|||||||
on = "push"
|
on = "push"
|
||||||
resolves = [
|
resolves = [
|
||||||
"Send Custom Message",
|
"Send Custom Message",
|
||||||
"Send Default Message"
|
"Send Default Message",
|
||||||
|
"Send Photo Message",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,3 +23,16 @@ action "Send Default Message" {
|
|||||||
"TELEGRAM_TO",
|
"TELEGRAM_TO",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
action "Send Photo Message" {
|
||||||
|
uses = "appleboy/telegram-action@master"
|
||||||
|
env = {
|
||||||
|
PHOTO = "tests/github.png"
|
||||||
|
DOCUMENT = "tests/gophercolor.png"
|
||||||
|
}
|
||||||
|
secrets = [
|
||||||
|
"TELEGRAM_TOKEN",
|
||||||
|
"TELEGRAM_TO",
|
||||||
|
]
|
||||||
|
args = "send photo message."
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM appleboy/drone-telegram:1.4.1-linux-amd64
|
FROM appleboy/drone-telegram:1.4.2-linux-amd64
|
||||||
|
|
||||||
# Github labels
|
# Github labels
|
||||||
LABEL "com.github.actions.name"="Telegram Notify"
|
LABEL "com.github.actions.name"="Telegram Notify"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ action "Send Custom Message" {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Send the default message. Please remove args
|
Remove `args` to send the default message.
|
||||||
|
|
||||||
```
|
```
|
||||||
action "Send Default Message" {
|
action "Send Default Message" {
|
||||||
@@ -33,6 +33,34 @@ action "Send Default Message" {
|
|||||||
|
|
||||||
<img src="images/telegram-workflow.png">
|
<img src="images/telegram-workflow.png">
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```
|
||||||
|
action "Send photo message" {
|
||||||
|
uses = "appleboy/telegram-action@master"
|
||||||
|
secrets = [
|
||||||
|
"TELEGRAM_TOKEN",
|
||||||
|
"TELEGRAM_TO",
|
||||||
|
]
|
||||||
|
env = {
|
||||||
|
PHOTO = "tests/github.png"
|
||||||
|
}
|
||||||
|
args = "A new commit has been pushed."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Secrets
|
## Secrets
|
||||||
|
|
||||||
Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).
|
Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user