mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-07-07 18:57:57 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a77dd3e42f | |||
| 2e9996f96e |
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM appleboy/drone-telegram:1.3.9-linux-amd64
|
FROM appleboy/drone-telegram:1.4.0
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -21,13 +21,18 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: send telegram message on push
|
||||||
- name: send custom message with args
|
uses: appleboy/telegram-action@master
|
||||||
uses: appleboy/telegram-action@master
|
with:
|
||||||
with:
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
to: ${{ secrets.TELEGRAM_TO }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
message: |
|
||||||
args: The ${{ github.event_name }} event triggered first step.
|
${{ github.actor }} created commit:
|
||||||
|
Commit message: ${{ github.event.commits[0].message }}
|
||||||
|
|
||||||
|
Repository: ${{ github.repository }}
|
||||||
|
|
||||||
|
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove `args` to send the default message.
|
Remove `args` to send the default message.
|
||||||
@@ -88,19 +93,6 @@ send location message:
|
|||||||
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
||||||
```
|
```
|
||||||
|
|
||||||
send custom message:
|
|
||||||
|
|
||||||
```yml
|
|
||||||
- name: send custom message
|
|
||||||
uses: appleboy/telegram-action@master
|
|
||||||
with:
|
|
||||||
to: ${{ secrets.TELEGRAM_TO }}
|
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
|
||||||
message: |
|
|
||||||
The ${{ github.event_name }} event triggered final step.
|
|
||||||
echo This event is a pull request that had an assignee removed.
|
|
||||||
```
|
|
||||||
|
|
||||||
send message using custom proxy (support `http`, `https`, and `socks5`) like `socks5://127.0.0.1:1080` or `http://222.124.154.19:23500`
|
send message using custom proxy (support `http`, `https`, and `socks5`) like `socks5://127.0.0.1:1080` or `http://222.124.154.19:23500`
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
|||||||
Reference in New Issue
Block a user