mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dc870f34e9 | |||
| 6cdf58fd81 | |||
| 1ecd8d50e4 |
+12
-12
@@ -8,14 +8,14 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: send custom message with args
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
args: The ${{ github.event_name }} event triggered first step.
|
||||
|
||||
- name: send message useing with
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
@@ -27,13 +27,13 @@ jobs:
|
||||
show the github varable commit: {{ commit.sha }}
|
||||
|
||||
- name: send default message
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
|
||||
- name: send photo message
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
document: './tests/gophercolor.png'
|
||||
|
||||
- name: send location message
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
||||
|
||||
- name: send custom message
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
echo This event is a pull request that had an assignee removed.
|
||||
|
||||
- name: send message file
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
@@ -84,18 +84,18 @@ jobs:
|
||||
# ${{ github.actor }}:${{ github.event.head_commit.message }}
|
||||
|
||||
- name: link preview
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
message: |
|
||||
link preview https://google.com.tw
|
||||
show link preview https://google.com.tw
|
||||
|
||||
- name: disable link preview
|
||||
uses: appleboy/telegram-action@master
|
||||
uses: ./
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
webpage_preview: false
|
||||
disable_web_page_preview: true
|
||||
message: |
|
||||
link preview https://google.com.tw
|
||||
disable link preview https://google.com.tw
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM appleboy/drone-telegram:1.3.6-linux-amd64
|
||||
FROM appleboy/drone-telegram:1.3.8-linux-amd64
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
@@ -55,7 +55,7 @@ Remove `args` to send the default message.
|
||||
* format - optional. `markdown` or `html`. See [MarkdownV2 style](https://core.telegram.org/bots/api#markdownv2-style)
|
||||
* message - optional. custom message
|
||||
* message_file - optional. overwrite the default message template with the contents of the specified file.
|
||||
* webpage_preview - optional. disables link previews for links in this message. default is `true`.
|
||||
* disable_web_page_preview - optional. disables link previews for links in this message. default is `false`.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
+1
-2
@@ -32,9 +32,8 @@ inputs:
|
||||
description: 'enable debug mode.'
|
||||
format:
|
||||
description: 'message format: markdown or html'
|
||||
webpage_preview:
|
||||
disable_web_page_preview:
|
||||
description: 'disables link previews for links in this message'
|
||||
default: true
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
||||
Reference in New Issue
Block a user