mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-09 12:40:42 +09:00
docs: update readme
This commit is contained in:
@@ -11,13 +11,22 @@
|
|||||||
Send custom message and see the custom variable as blow.
|
Send custom message and see the custom variable as blow.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: send custom message
|
name: telegram message
|
||||||
uses: appleboy/telegram-action@master
|
on: [push]
|
||||||
env:
|
jobs:
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
|
||||||
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
build:
|
||||||
with:
|
name: Build
|
||||||
args: The ${{ github.event_name }} event triggered first step.
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: send custom message with args
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
env:
|
||||||
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
||||||
|
with:
|
||||||
|
args: The ${{ github.event_name }} event triggered first step.
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove `args` to send the default message.
|
Remove `args` to send the default message.
|
||||||
|
|||||||
Reference in New Issue
Block a user